UserModel constructor

  1. @JsonSerializable(explicitToJson: true)
const UserModel(
  1. {String? uid,
  2. String? email,
  3. String? displayName,
  4. String? photoURL,
  5. @Default(false) bool disabled,
  6. bool? emailVerified,
  7. @JsonKey(name: 'metadata', fromJson: userCreationDateFromJson, toJson: userCreationDateToJson) DateTime? creationTime,
  8. @Default(CustomClaimsModel()) CustomClaimsModel customClaims}
)

Implementation

@JsonSerializable(explicitToJson: true)
const factory UserModel({
  String? uid,
  String? email,
  String? displayName,
  String? photoURL,
  @Default(false) bool disabled,
  bool? emailVerified,
  @JsonKey(
    name: 'metadata',
    fromJson: userCreationDateFromJson,
    toJson: userCreationDateToJson,
  )
  DateTime? creationTime,
  @Default(CustomClaimsModel()) CustomClaimsModel customClaims,
}) = _UserModel;