TenvioDispatchGuide class abstract

Available extensions
Annotations
  • @freezed

Constructors

TenvioDispatchGuide({required String id, @TenvioDispatchGuideStatusConverter() required TenvioDispatchGuideStatus status, String? qrCode, Asset? warehouse, String? warehouseId, TenvioDriver? driver, String? driverId, User? loader, String? loaderId, @Default.new([]) List<TenvioPackage> packages, @Default.new([]) List<String> packagesIds, @Default.new(false) bool hasRoute, @Default.new([]) List<String> route, @TimestampConverter() required DateTime createdAt, @TimestampConverter() required DateTime updatedAt})
const
factory
TenvioDispatchGuide.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $TenvioDispatchGuideCopyWith<TenvioDispatchGuide>
Create a copy of TenvioDispatchGuide with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
createdAt is the date and time when the dispatch guide was created
no setterinherited
driver TenvioDriver?
driver is the driver assigned to the dispatch guide
no setterinherited
driverId String?
driverId is the unique identifier of the driver assigned to the dispatch guide
no setterinherited
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
no setterinherited
id String
id is the unique identifier of the dispatch guide
no setterinherited
label String
no setter
loader User?
loader is the loader assigned to the dispatch guide
no setterinherited
loaderId String?
loaderId is the unique identifier of the loader assigned to the dispatch guide
no setterinherited
packages List<TenvioPackage>
packages is the list of packages assigned to the dispatch guide
no setterinherited
packagesIds List<String>
packagesIds is the list of packages' ids assigned to the dispatch guide
no setterinherited
qrCode String?
qrCode is the QR code of the dispatch guide
no setterinherited
route List<String>
route is the route assigned to the dispatch guide Is a list of packages' ids (ordered by the delivery sequence)
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status TenvioDispatchGuideStatus
status is the current status of the dispatch guide
no setterinherited
updatedAt DateTime
updatedAt is the date and time when the dispatch guide was last updated
no setterinherited
warehouse Asset?
warehouse is the warehouse where the dispatch guide was created
no setterinherited
warehouseId String?
warehouseId is the unique identifier of the warehouse where the dispatch guide was created
no setterinherited

Methods

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

Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns extension

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

Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns extension

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

Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String id, TenvioDispatchGuideStatus status, String? qrCode, Asset? warehouse, String? warehouseId, TenvioDriver? driver, String? driverId, User? loader, String? loaderId, List<TenvioPackage> packages, List<String> packagesIds, bool hasRoute, List<String> route, DateTime createdAt, DateTime updatedAt)?, {required TResult orElse()}) → TResult

Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns 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 TenvioDispatchGuide to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String id, TenvioDispatchGuideStatus status, String? qrCode, Asset? warehouse, String? warehouseId, TenvioDriver? driver, String? driverId, User? loader, String? loaderId, List<TenvioPackage> packages, List<String> packagesIds, bool hasRoute, List<String> route, DateTime createdAt, DateTime updatedAt)) → TResult

Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String id, TenvioDispatchGuideStatus status, String? qrCode, Asset? warehouse, String? warehouseId, TenvioDriver? driver, String? driverId, User? loader, String? loaderId, List<TenvioPackage> packages, List<String> packagesIds, bool hasRoute, List<String> route, DateTime createdAt, DateTime updatedAt)?) → TResult?

Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns extension

A variant of when that fallback to returning null

Operators

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