TenvioItemInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
-
TenvioItemInput({String? id, String? matrixId, @TenvioItemLocationConverter() @Default.new(TenvioItemLocation.inWarehouse) TenvioItemLocation location, String? address, @TimestampOrNullConverter() DateTime? pickupDate, @Default.new({}) Map<
String, dynamic> customProperties, String? warehouseId}) -
factory
-
TenvioItemInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
- address ↔ String?
-
addressis the address of the item. This property is only available when the item is at the customer.getter/setter pairinherited -
copyWith
→ $TenvioItemInputCopyWith<
TenvioItemInput> -
Create a copy of TenvioItemInput
with the given fields replaced by the non-null parameter values.
no setterinherited
-
customProperties
↔ Map<
String, dynamic> -
customPropertiesis aMap<String, dynamic>that contains the custom properties of the item. This properties can be used to store additional information about the item and it's up to the user to define them.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
idis the unique identifier for the item.getter/setter pairinherited - location ↔ TenvioItemLocation
-
locationis the location of the item.getter/setter pairinherited - matrixId ↔ String?
-
matrixIdis the unique identifier of the matrix item.getter/setter pairinherited - pickupDate ↔ DateTime?
-
pickupDateis the date when the item was picked up.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- warehouseId ↔ String?
-
warehouseIdis the Warehouse ID where the item is stored.getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_TenvioItemInput value)) → TResult -
Available on TenvioItemInput, provided by the TenvioItemInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_TenvioItemInput value)?) → TResult? -
Available on TenvioItemInput, provided by the TenvioItemInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_TenvioItemInput value)?, {required TResult orElse()}) → TResult -
Available on TenvioItemInput, provided by the TenvioItemInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String? matrixId, TenvioItemLocation location, String? address, DateTime? pickupDate, Map< String, dynamic> customProperties, String? warehouseId)?, {required TResult orElse()}) → TResult -
Available on TenvioItemInput, provided by the TenvioItemInputPatterns 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 TenvioItemInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? id, String? matrixId, TenvioItemLocation location, String? address, DateTime? pickupDate, Map< String, dynamic> customProperties, String? warehouseId)) → TResult -
Available on TenvioItemInput, provided by the TenvioItemInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String? matrixId, TenvioItemLocation location, String? address, DateTime? pickupDate, Map< String, dynamic> customProperties, String? warehouseId)?) → TResult? -
Available on TenvioItemInput, provided by the TenvioItemInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited