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?
destinationType Type of the destination.
getter/setter pairinherited
destinationUnregistered TenvioUnregisteredUserInput?
destinationUnregisteredUser Unregistered user destination of the order.
getter/setter pairinherited
destinationUserId String?
destinationUserId ID of the user destination of the order.
getter/setter pairinherited
destinationWarehouseId String?
destinationWarehouseId ID of the warehouse destination of the order.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
highPriority bool
highhighPriority High priority indicator.
getter/setter pairinherited
id String?
id ID of the order entity. This ID is unique along the system.
getter/setter pairinherited
itemQuantities List<TenvioItemQuantityInput>
itemQuantities Items included in the order.
getter/setter pairinherited
notes List<String>
notes Notes of the order entity.
getter/setter pairinherited
orderId String
no setter
packersIds List<String>
packersIds IDs of packers assigned to the order.
getter/setter pairinherited
requiresPhotos bool
requiresImages Requires images indicator.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status TenvioOrderStatus
status Status of the order entity.
getter/setter pairinherited
warehouseId String?
warehouseId ID 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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_TenvioOrderInput value)?) → TResult?

Available on TenvioOrderInput, provided by the TenvioOrderInputPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_TenvioOrderInput value)?, {required TResult orElse()}) → TResult

Available on TenvioOrderInput, provided by the TenvioOrderInputPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited