copyWith method

UserDTO copyWith({
  1. UserLinkDTO? links,
  2. String? accountId,
  3. bool? active,
  4. String? displayName,
  5. String? emailAddress,
  6. String? key,
  7. String? name,
  8. String? timeZone,
})

Implementation

UserDTO copyWith(
    {UserLinkDTO? links,
    String? accountId,
    bool? active,
    String? displayName,
    String? emailAddress,
    String? key,
    String? name,
    String? timeZone}) {
  return UserDTO(
    links: links ?? this.links,
    accountId: accountId ?? this.accountId,
    active: active ?? this.active,
    displayName: displayName ?? this.displayName,
    emailAddress: emailAddress ?? this.emailAddress,
    key: key ?? this.key,
    name: name ?? this.name,
    timeZone: timeZone ?? this.timeZone,
  );
}