TenvioOrderInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
-
TenvioOrderInput({String? id, String? warehouseId, @TenvioOrderStatusConverter() required TenvioOrderStatus status, @TenvioDestinationTypeOrNullConverter() TenvioDestinationType? destinationType, String? destinationWarehouseId, String? destinationUserId, TenvioUnregisteredUserInput? destinationUnregistered, @Default.new([]) List<
String> notes, @Default.new(false) bool requiresPhotos, @Default.new(false) bool highPriority, @Default.new([]) List<String> packersIds, @Default.new([]) List<TenvioItemQuantityInput> itemQuantities}) -
factory
-
TenvioOrderInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $TenvioOrderInputCopyWith<
TenvioOrderInput> -
Create a copy of TenvioOrderInput
with the given fields replaced by the non-null parameter values.
no setterinherited
- destinationType ↔ TenvioDestinationType?
-
destinationTypeType of the destination.getter/setter pairinherited - destinationUnregistered ↔ TenvioUnregisteredUserInput?
-
destinationUnregisteredUserUnregistered user destination of the order.getter/setter pairinherited - destinationUserId ↔ String?
-
destinationUserIdID of the user destination of the order.getter/setter pairinherited - destinationWarehouseId ↔ String?
-
destinationWarehouseIdID of the warehouse destination of the order.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- highPriority ↔ bool
-
highhighPriorityHigh priority indicator.getter/setter pairinherited - id ↔ String?
-
idID of the order entity. This ID is unique along the system.getter/setter pairinherited -
itemQuantities
↔ List<
TenvioItemQuantityInput> -
itemQuantitiesItems included in the order.getter/setter pairinherited -
notes
↔ List<
String> -
notesNotes of the order entity.getter/setter pairinherited - orderId → String
-
no setter
-
packersIds
↔ List<
String> -
packersIdsIDs of packers assigned to the order.getter/setter pairinherited - requiresPhotos ↔ bool
-
requiresImagesRequires images indicator.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ TenvioOrderStatus
-
statusStatus of the order entity.getter/setter pairinherited - warehouseId ↔ String?
-
warehouseIdID of the warehouse where the order is located.getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_TenvioOrderInput value)) → TResult -
Available on TenvioOrderInput, provided by the TenvioOrderInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_TenvioOrderInput value)?) → TResult? -
Available on TenvioOrderInput, provided by the TenvioOrderInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_TenvioOrderInput value)?, {required TResult orElse()}) → TResult -
Available on TenvioOrderInput, provided by the TenvioOrderInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String? warehouseId, TenvioOrderStatus status, TenvioDestinationType? destinationType, String? destinationWarehouseId, String? destinationUserId, TenvioUnregisteredUserInput? destinationUnregistered, List< String> notes, bool requiresPhotos, bool highPriority, List<String> packersIds, List<TenvioItemQuantityInput> itemQuantities)?, {required TResult orElse()}) → TResult -
Available on TenvioOrderInput, provided by the TenvioOrderInputPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this TenvioOrderInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? id, String? warehouseId, TenvioOrderStatus status, TenvioDestinationType? destinationType, String? destinationWarehouseId, String? destinationUserId, TenvioUnregisteredUserInput? destinationUnregistered, List< String> notes, bool requiresPhotos, bool highPriority, List<String> packersIds, List<TenvioItemQuantityInput> itemQuantities)) → TResult -
Available on TenvioOrderInput, provided by the TenvioOrderInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String? warehouseId, TenvioOrderStatus status, TenvioDestinationType? destinationType, String? destinationWarehouseId, String? destinationUserId, TenvioUnregisteredUserInput? destinationUnregistered, List< String> notes, bool requiresPhotos, bool highPriority, List<String> packersIds, List<TenvioItemQuantityInput> itemQuantities)?) → TResult? -
Available on TenvioOrderInput, provided by the TenvioOrderInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited