UserModel constructor
- @JsonSerializable(explicitToJson: true)
- {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}
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;