Address constructor

Address({
  1. StringValue? companyName,
  2. StringValue? street,
  3. StringValue? street2,
  4. StringValue? city,
  5. StringValue? zip,
  6. StringValue? firstName,
  7. StringValue? lastName,
  8. StringValue? countryCodeIso2Letter,
  9. StringValue? cO,
  10. StringValue? misc,
  11. StringValue? instructions,
  12. GeoLocation? location,
})

Implementation

factory Address({
  $0.StringValue? companyName,
  $0.StringValue? street,
  $0.StringValue? street2,
  $0.StringValue? city,
  $0.StringValue? zip,
  $0.StringValue? firstName,
  $0.StringValue? lastName,
  $0.StringValue? countryCodeIso2Letter,
  $0.StringValue? cO,
  $0.StringValue? misc,
  $0.StringValue? instructions,
  $1.GeoLocation? location,
}) {
  final result = create();
  if (companyName != null) result.companyName = companyName;
  if (street != null) result.street = street;
  if (street2 != null) result.street2 = street2;
  if (city != null) result.city = city;
  if (zip != null) result.zip = zip;
  if (firstName != null) result.firstName = firstName;
  if (lastName != null) result.lastName = lastName;
  if (countryCodeIso2Letter != null)
    result.countryCodeIso2Letter = countryCodeIso2Letter;
  if (cO != null) result.cO = cO;
  if (misc != null) result.misc = misc;
  if (instructions != null) result.instructions = instructions;
  if (location != null) result.location = location;
  return result;
}