PieceActivity constructor
PieceActivity({
- String? pieceId,
- int? parcelId,
- String? shipmentId,
- int? compartmentId,
- int? shipmentType,
- String? token,
- int? signature,
- int? expiryTime,
- Iterable<
Auth> ? auth, - String? carrierName,
- String? carrierLogo,
- int? width,
- int? height,
- int? depth,
- int? wheelchairAccessible,
- Iterable<
PieceEvents> ? pieceEvents, - String? instruction,
Implementation
factory PieceActivity({
$core.String? pieceId,
$core.int? parcelId,
$core.String? shipmentId,
$core.int? compartmentId,
$core.int? shipmentType,
$core.String? token,
$core.int? signature,
$core.int? expiryTime,
$core.Iterable<Auth>? auth,
$core.String? carrierName,
$core.String? carrierLogo,
$core.int? width,
$core.int? height,
$core.int? depth,
$core.int? wheelchairAccessible,
$core.Iterable<PieceEvents>? pieceEvents,
$core.String? instruction,
}) {
final result = create();
if (pieceId != null) result.pieceId = pieceId;
if (parcelId != null) result.parcelId = parcelId;
if (shipmentId != null) result.shipmentId = shipmentId;
if (compartmentId != null) result.compartmentId = compartmentId;
if (shipmentType != null) result.shipmentType = shipmentType;
if (token != null) result.token = token;
if (signature != null) result.signature = signature;
if (expiryTime != null) result.expiryTime = expiryTime;
if (auth != null) result.auth.addAll(auth);
if (carrierName != null) result.carrierName = carrierName;
if (carrierLogo != null) result.carrierLogo = carrierLogo;
if (width != null) result.width = width;
if (height != null) result.height = height;
if (depth != null) result.depth = depth;
if (wheelchairAccessible != null)
result.wheelchairAccessible = wheelchairAccessible;
if (pieceEvents != null) result.pieceEvents.addAll(pieceEvents);
if (instruction != null) result.instruction = instruction;
return result;
}