copyWith method

AuditRecordAuthor copyWith({
  1. AuditRecordAuthorType? type,
  2. String? displayName,
  3. Map<String, dynamic>? operations,
  4. String? username,
  5. String? userKey,
  6. String? accountId,
  7. String? accountType,
  8. bool? externalCollaborator,
  9. bool? isExternalCollaborator,
  10. String? publicName,
})

Implementation

AuditRecordAuthor copyWith(
    {AuditRecordAuthorType? type,
    String? displayName,
    Map<String, dynamic>? operations,
    String? username,
    String? userKey,
    String? accountId,
    String? accountType,
    bool? externalCollaborator,
    bool? isExternalCollaborator,
    String? publicName}) {
  return AuditRecordAuthor(
    type: type ?? this.type,
    displayName: displayName ?? this.displayName,
    operations: operations ?? this.operations,
    username: username ?? this.username,
    userKey: userKey ?? this.userKey,
    accountId: accountId ?? this.accountId,
    accountType: accountType ?? this.accountType,
    externalCollaborator: externalCollaborator ?? this.externalCollaborator,
    isExternalCollaborator:
        isExternalCollaborator ?? this.isExternalCollaborator,
    publicName: publicName ?? this.publicName,
  );
}