ItemUnitDto class

Available extensions
Annotations
  • @freezed

Constructors

ItemUnitDto.new({@JsonKey(includeToJson: false) required String itemId, @JsonKey(includeToJson: false) required String itemVersion, @ItemIdTypeJsonConverter() required ItemIdType idType, required String user, required SourceIdentifier sourceIdentifier, @Default('') @JsonKey(includeToJson: false) String unitId, @SpecialProcessConverter() @JsonKey(includeToJson: false) SpecialProcess? specialProcess, @Default(0) @JsonKey(includeToJson: false) double weightFilled, @JsonKey(includeToJson: false) DateTime? capturedAt, @JsonKey(includeToJson: false) DateTime? createdAt})
const
factory
ItemUnitDto.fromJson(Map<String, dynamic> json)
factory

Properties

capturedAt DateTime?
no setterinherited
copyWith → $ItemUnitDtoCopyWith<ItemUnitDto>
Create a copy of ItemUnitDto with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
idType ItemIdType
no setterinherited
itemId String
no setterinherited
itemVersion String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceIdentifier SourceIdentifier
no setterinherited
specialProcess SpecialProcess?
no setterinherited
unitId String
no setterinherited
user String
no setterinherited
weightFilled double
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ItemUnitDto to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
toUnitItem({UnitServer? server, required Locale locale}) UnitItem

Available on ItemUnitDto, provided by the ItemUnitDtoExtension extension

Operators

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