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?
address is 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>
customProperties is a Map<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?
id is the unique identifier for the item.
getter/setter pairinherited
location TenvioItemLocation
location is the location of the item.
getter/setter pairinherited
matrixId String?
matrixId is the unique identifier of the matrix item.
getter/setter pairinherited
pickupDate DateTime?
pickupDate is 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?
warehouseId is 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

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

Available on TenvioItemInput, provided by the TenvioItemInputPatterns extension

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

Available on TenvioItemInput, provided by the TenvioItemInputPatterns extension

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

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

Operators

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