TenvioDispatchGuideInput class abstract

Available extensions
Annotations
  • @unfreezed

Constructors

TenvioDispatchGuideInput({String? id, required String warehouseId, @TenvioDispatchGuideStatusConverter() @Default.new(TenvioDispatchGuideStatus.draft) TenvioDispatchGuideStatus status, String? driverId, String? loaderId, @Default.new(false) bool hasRoute, @Default.new([]) List<String> route, @Default.new([]) List<String> packagesIds})
factory
TenvioDispatchGuideInput.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $TenvioDispatchGuideInputCopyWith<TenvioDispatchGuideInput>
Create a copy of TenvioDispatchGuideInput with the given fields replaced by the non-null parameter values.
no setterinherited
driverId String?
driverId is the unique identifier of the driver assigned to the dispatch guide
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hasRoute bool
hasRoute is a flag that indicates if the dispatch guide has a route
getter/setter pairinherited
id String?
id is the unique identifier of the dispatch guide
getter/setter pairinherited
label String?
no setter
loaderId String?
loaderId is the unique identifier of the loader assigned to the dispatch guide
getter/setter pairinherited
packagesIds List<String>
packages is the list of packages assigned to the dispatch guide
getter/setter pairinherited
route List<String>
route is the route assigned to the dispatch guide Is a list of packages' ids (ordered by the delivery sequence)
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status TenvioDispatchGuideStatus
status is the current status of the dispatch guide
getter/setter pairinherited
warehouseId String
warehouseId is the unique identifier of the warehouse where the dispatch guide was created
getter/setter pairinherited

Methods

map<TResult extends Object?>(TResult $default(_TenvioDispatchGuideInput value)) → TResult

Available on TenvioDispatchGuideInput, provided by the TenvioDispatchGuideInputPatterns extension

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

Available on TenvioDispatchGuideInput, provided by the TenvioDispatchGuideInputPatterns extension

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

Available on TenvioDispatchGuideInput, provided by the TenvioDispatchGuideInputPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? id, String warehouseId, TenvioDispatchGuideStatus status, String? driverId, String? loaderId, bool hasRoute, List<String> route, List<String> packagesIds)?, {required TResult orElse()}) → TResult

Available on TenvioDispatchGuideInput, provided by the TenvioDispatchGuideInputPatterns 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 TenvioDispatchGuideInput to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? id, String warehouseId, TenvioDispatchGuideStatus status, String? driverId, String? loaderId, bool hasRoute, List<String> route, List<String> packagesIds)) → TResult

Available on TenvioDispatchGuideInput, provided by the TenvioDispatchGuideInputPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? id, String warehouseId, TenvioDispatchGuideStatus status, String? driverId, String? loaderId, bool hasRoute, List<String> route, List<String> packagesIds)?) → TResult?

Available on TenvioDispatchGuideInput, provided by the TenvioDispatchGuideInputPatterns extension

A variant of when that fallback to returning null

Operators

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