User constructor

User({
  1. required UserType type,
  2. String? username,
  3. String? userKey,
  4. String? accountId,
  5. UserAccountType? accountType,
  6. String? email,
  7. String? publicName,
  8. Icon? profilePicture,
  9. String? displayName,
  10. String? timeZone,
  11. bool? isExternalCollaborator,
  12. bool? externalCollaborator,
  13. List<OperationCheckResult>? operations,
  14. UserDetails? details,
  15. Space? personalSpace,
  16. UserExpandable? expandable,
  17. GenericLinks? links,
})

Implementation

User(
    {required this.type,
    this.username,
    this.userKey,
    this.accountId,
    this.accountType,
    this.email,
    this.publicName,
    this.profilePicture,
    this.displayName,
    this.timeZone,
    bool? isExternalCollaborator,
    bool? externalCollaborator,
    List<OperationCheckResult>? operations,
    this.details,
    this.personalSpace,
    this.expandable,
    this.links})
    : isExternalCollaborator = isExternalCollaborator ?? false,
      externalCollaborator = externalCollaborator ?? false,
      operations = operations ?? [];