copyWith method

AttributeUserUpdateDto copyWith({
  1. Object? id = _copyWithSentinel,
  2. Object? email = _copyWithSentinel,
  3. Object? secret = _copyWithSentinel,
  4. Object? role = _copyWithSentinel,
  5. Object? profile = _copyWithSentinel,
})

Implementation

AttributeUserUpdateDto copyWith({
  Object? id = _copyWithSentinel,
  Object? email = _copyWithSentinel,
  Object? secret = _copyWithSentinel,
  Object? role = _copyWithSentinel,
  Object? profile = _copyWithSentinel,
}) {
  return AttributeUserUpdateDto(
    id: identical(id, _copyWithSentinel) ? this.id : id as int?,
    email: identical(email, _copyWithSentinel)
        ? this.email
        : email as String?,
    secret: identical(secret, _copyWithSentinel)
        ? this.secret
        : secret as String?,
    role: identical(role, _copyWithSentinel) ? this.role : role as String?,
    profile: identical(profile, _copyWithSentinel)
        ? this.profile
        : profile as Map<String, Object?>?,
  );
}