AtsExit class abstract

Available extensions
Annotations
  • @freezed

Constructors

AtsExit({String? id, int? identifier, String? fromAssetId, Asset? fromAsset, String? toAssetId, Asset? toAsset, double? errorPercent, double? totalLiters, double? toAssetMileage, @TimestampOrNullConverter() DateTime? startAt, @TimestampOrNullConverter() DateTime? endAt, String? totalTime, @DurationOrNullConverter() Duration? totalTimeDuration, double? initialFluxometer, double? finalFluxometer, double? initialTankVolume, double? finalTankVolume, double? price, String? attendantName, String? attendantId})
const
factory
AtsExit.fromJson(Map<String, dynamic> json)
factory

Properties

attendantId String?
attendantId is the attendant id.
no setterinherited
attendantName String?
attendantName is the attendant name.
no setterinherited
copyWith → $AtsExitCopyWith<AtsExit>
Create a copy of AtsExit with the given fields replaced by the non-null parameter values.
no setterinherited
endAt DateTime?
endAt is the end exit date.
no setterinherited
errorPercent double?
errorPercent is the errror percent between reception and sensor entry.
no setterinherited
finalFluxometer double?
finalFluxometer is the final fluxometer of the day.
no setterinherited
finalTankVolume double?
finalTankVolume is the final tank volume of the day.
no setterinherited
fromAsset Asset?
fromAsset is the id Asset kind pump to generate the exit.
no setterinherited
fromAssetId String?
fromAssetId is the Asset kind pump to generate the exit.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
id of the volume. This ID is unique.
no setterinherited
identifier int?
identifier is the exit identifier.
no setterinherited
initialFluxometer double?
initialFluxometer is the initial fluxometer of the day.
no setterinherited
initialTankVolume double?
initialTankVolume is the initial tank volume of the day.
no setterinherited
price double?
price is the unit price per liter of exit.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAt DateTime?
startAt is the start exit date.
no setterinherited
toAsset Asset?
toAsset is the Asset that receive the fuel (Receive the exit).
no setterinherited
toAssetId String?
toAssetId is the id Asset that receive the fuel (Receive the exit).
no setterinherited
toAssetMileage double?
toAssetMileage is the Odometer of the asset mileage registered.
no setterinherited
totalLiters double?
totalLiters is the total liters of the exit.
no setterinherited
totalTime String?
totalTime is the total exit time.
no setterinherited
totalTimeDuration Duration?
totalTimeDuration is the duration in seconds of the exit.
no setterinherited

Methods

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

Available on AtsExit, provided by the AtsExitPatterns extension

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

Available on AtsExit, provided by the AtsExitPatterns extension

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

Available on AtsExit, provided by the AtsExitPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? id, int? identifier, String? fromAssetId, Asset? fromAsset, String? toAssetId, Asset? toAsset, double? errorPercent, double? totalLiters, double? toAssetMileage, DateTime? startAt, DateTime? endAt, String? totalTime, Duration? totalTimeDuration, double? initialFluxometer, double? finalFluxometer, double? initialTankVolume, double? finalTankVolume, double? price, String? attendantName, String? attendantId)?, {required TResult orElse()}) → TResult

Available on AtsExit, provided by the AtsExitPatterns 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 AtsExit to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? id, int? identifier, String? fromAssetId, Asset? fromAsset, String? toAssetId, Asset? toAsset, double? errorPercent, double? totalLiters, double? toAssetMileage, DateTime? startAt, DateTime? endAt, String? totalTime, Duration? totalTimeDuration, double? initialFluxometer, double? finalFluxometer, double? initialTankVolume, double? finalTankVolume, double? price, String? attendantName, String? attendantId)) → TResult

Available on AtsExit, provided by the AtsExitPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? id, int? identifier, String? fromAssetId, Asset? fromAsset, String? toAssetId, Asset? toAsset, double? errorPercent, double? totalLiters, double? toAssetMileage, DateTime? startAt, DateTime? endAt, String? totalTime, Duration? totalTimeDuration, double? initialFluxometer, double? finalFluxometer, double? initialTankVolume, double? finalTankVolume, double? price, String? attendantName, String? attendantId)?) → TResult?

Available on AtsExit, provided by the AtsExitPatterns extension

A variant of when that fallback to returning null

Operators

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