User constructor

const User({
  1. required String id,
  2. @Default(null) String? rev,
  3. @Default(null) int? deletionDate,
  4. @Default(null) int? created,
  5. @Default([]) List<Identifier> identifier,
  6. @Default(null) String? name,
  7. @Default({}) Set<DecryptedPropertyStub> properties,
  8. @Default({}) Set<Permission> permissions,
  9. @Default({}) Set<String> roles,
  10. @Default(null) UsersType? type,
  11. @Default(null) UsersStatus? status,
  12. @Default(null) String? login,
  13. @Default(null) String? passwordHash,
  14. @Default(null) String? groupId,
  15. @Default(null) String? healthcarePartyId,
  16. @Default(null) String? patientId,
  17. @Default(null) String? deviceId,
  18. @Default({}) Map<DelegationTag, Set<String>> autoDelegations,
  19. @Default(null) DateTime? createdDate,
  20. @Default(null) DateTime? termsOfUseDate,
  21. @Default(null) String? email,
  22. @Default(null) String? mobilePhone,
  23. @Default({}) Map<String, String> applicationTokens,
  24. @Default({}) Map<String, AuthenticationToken> authenticationTokens,
  25. @Default(null) UserSystemMetadata? systemMetadata,
})

Implementation

const factory User({
	required String id,
	@Default(null) String? rev,
	@Default(null) int? deletionDate,
	@Default(null) int? created,
	@Default([]) List<Identifier> identifier,
	@Default(null) String? name,
	@Default({}) Set<DecryptedPropertyStub> properties,
	@Default({}) Set<Permission> permissions,
	@Default({}) Set<String> roles,
	@Default(null) UsersType? type,
	@Default(null) UsersStatus? status,
	@Default(null) String? login,
	@Default(null) String? passwordHash,
	@Default(null) String? groupId,
	@Default(null) String? healthcarePartyId,
	@Default(null) String? patientId,
	@Default(null) String? deviceId,
	@Default({}) Map<DelegationTag, Set<String>> autoDelegations,
	@Default(null) DateTime? createdDate,
	@Default(null) DateTime? termsOfUseDate,
	@Default(null) String? email,
	@Default(null) String? mobilePhone,
	@Default({}) Map<String, String> applicationTokens,
	@Default({}) Map<String, AuthenticationToken> authenticationTokens,
	@Default(null) UserSystemMetadata? systemMetadata,
}) = _User;