UserProfile constructor

UserProfile({
  1. Image? profileImage,
  2. String? firstName,
  3. String? lastName,
  4. Timestamp? birthdate,
  5. CountryCode? preferredLanguage,
  6. String? country,
  7. String? address,
  8. String? city,
  9. String? postalCode,
  10. GenderType? gender,
  11. String? ssn,
  12. Image? coverImage,
})

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;
}