copyWithWrapped method

ShopifySharpFulfillmentOriginAddress copyWithWrapped({
  1. Wrapped<String?>? address1,
  2. Wrapped<String?>? address2,
  3. Wrapped<String?>? city,
  4. Wrapped<String?>? countryCode,
  5. Wrapped<String?>? provinceCode,
  6. Wrapped<String?>? zip,
})

Implementation

ShopifySharpFulfillmentOriginAddress copyWithWrapped({
  Wrapped<String?>? address1,
  Wrapped<String?>? address2,
  Wrapped<String?>? city,
  Wrapped<String?>? countryCode,
  Wrapped<String?>? provinceCode,
  Wrapped<String?>? zip,
}) {
  return ShopifySharpFulfillmentOriginAddress(
    address1: (address1 != null ? address1.value : this.address1),
    address2: (address2 != null ? address2.value : this.address2),
    city: (city != null ? city.value : this.city),
    countryCode: (countryCode != null ? countryCode.value : this.countryCode),
    provinceCode: (provinceCode != null
        ? provinceCode.value
        : this.provinceCode),
    zip: (zip != null ? zip.value : this.zip),
  );
}