SwipBoxEnduserShipment constructor

SwipBoxEnduserShipment({
  1. String? spId,
  2. String? prefix,
  3. String? altSpId,
  4. String? name,
  5. String? address,
  6. String? locationDescription,
  7. String? zip,
  8. String? city,
  9. String? countryIso,
  10. double? longitude,
  11. double? latitude,
  12. String? carrierName,
  13. Iterable<Translations>? translations,
  14. Iterable<Locker>? lockers,
})

Implementation

factory SwipBoxEnduserShipment({
  $core.String? spId,
  $core.String? prefix,
  $core.String? altSpId,
  $core.String? name,
  $core.String? address,
  $core.String? locationDescription,
  $core.String? zip,
  $core.String? city,
  $core.String? countryIso,
  $core.double? longitude,
  $core.double? latitude,
  $core.String? carrierName,
  $core.Iterable<Translations>? translations,
  $core.Iterable<$1.Locker>? lockers,
}) {
  final result = create();
  if (spId != null) result.spId = spId;
  if (prefix != null) result.prefix = prefix;
  if (altSpId != null) result.altSpId = altSpId;
  if (name != null) result.name = name;
  if (address != null) result.address = address;
  if (locationDescription != null)
    result.locationDescription = locationDescription;
  if (zip != null) result.zip = zip;
  if (city != null) result.city = city;
  if (countryIso != null) result.countryIso = countryIso;
  if (longitude != null) result.longitude = longitude;
  if (latitude != null) result.latitude = latitude;
  if (carrierName != null) result.carrierName = carrierName;
  if (translations != null) result.translations.addAll(translations);
  if (lockers != null) result.lockers.addAll(lockers);
  return result;
}