UserProfile constructor
UserProfile({})
Implementation
factory UserProfile({
$1.Image? profileImage,
$core.String? firstName,
$core.String? lastName,
$2.Timestamp? birthdate,
$1.CountryCode? preferredLanguage,
$core.String? country,
$core.String? address,
$core.String? city,
$core.String? postalCode,
GenderType? gender,
$core.String? ssn,
$1.Image? coverImage,
}) {
final _result = create();
if (profileImage != null) {
_result.profileImage = profileImage;
}
if (firstName != null) {
_result.firstName = firstName;
}
if (lastName != null) {
_result.lastName = lastName;
}
if (birthdate != null) {
_result.birthdate = birthdate;
}
if (preferredLanguage != null) {
_result.preferredLanguage = preferredLanguage;
}
if (country != null) {
_result.country = country;
}
if (address != null) {
_result.address = address;
}
if (city != null) {
_result.city = city;
}
if (postalCode != null) {
_result.postalCode = postalCode;
}
if (gender != null) {
_result.gender = gender;
}
if (ssn != null) {
_result.ssn = ssn;
}
if (coverImage != null) {
_result.coverImage = coverImage;
}
return _result;
}