Shipment constructor
Shipment({})
Implementation
factory Shipment({
$core.String? spId,
$core.String? altSpId,
$core.String? name,
$core.String? address1,
$core.String? address2,
$core.String? city,
$core.String? zip,
$core.String? countryIso,
$core.double? longitude,
$core.double? latitude,
$core.double? distance,
$core.Iterable<$0.Locker>? lockers,
}) {
final result = create();
if (spId != null) result.spId = spId;
if (altSpId != null) result.altSpId = altSpId;
if (name != null) result.name = name;
if (address1 != null) result.address1 = address1;
if (address2 != null) result.address2 = address2;
if (city != null) result.city = city;
if (zip != null) result.zip = zip;
if (countryIso != null) result.countryIso = countryIso;
if (longitude != null) result.longitude = longitude;
if (latitude != null) result.latitude = latitude;
if (distance != null) result.distance = distance;
if (lockers != null) result.lockers.addAll(lockers);
return result;
}