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}) -
constfactory
-
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
-
createdAtis the date and time when the dispatch guide was createdno setterinherited - driver → TenvioDriver?
-
driveris the driver assigned to the dispatch guideno setterinherited - driverId → String?
-
driverIdis the unique identifier of the driver assigned to the dispatch guideno setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hasRoute → bool
-
hasRouteis a flag that indicates if the dispatch guide has a routeno setterinherited - id → String
-
idis the unique identifier of the dispatch guideno setterinherited - label → String
-
no setter
- loader → User?
-
loaderis the loader assigned to the dispatch guideno setterinherited - loaderId → String?
-
loaderIdis the unique identifier of the loader assigned to the dispatch guideno setterinherited -
packages
→ List<
TenvioPackage> -
packagesis the list of packages assigned to the dispatch guideno setterinherited -
packagesIds
→ List<
String> -
packagesIdsis the list of packages' ids assigned to the dispatch guideno setterinherited - qrCode → String?
-
qrCodeis the QR code of the dispatch guideno setterinherited -
route
→ List<
String> -
routeis 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
-
statusis the current status of the dispatch guideno setterinherited - updatedAt → DateTime
-
updatedAtis the date and time when the dispatch guide was last updatedno setterinherited - warehouse → Asset?
-
warehouseis the warehouse where the dispatch guide was createdno setterinherited - warehouseId → String?
-
warehouseIdis the unique identifier of the warehouse where the dispatch guide was createdno setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_TenvioDispatchGuide value)) → TResult -
Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_TenvioDispatchGuide value)?) → TResult? -
Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_TenvioDispatchGuide value)?, {required TResult orElse()}) → TResult -
Available on TenvioDispatchGuide, provided by the TenvioDispatchGuidePatterns extension
A variant ofmapthat fallback to returningorElse. -
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 ofwhenthat fallback to anorElsecallback. -
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
Aswitch-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 ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited