WarrantyDto class
Warranty definition for a line item.
Constructors
-
WarrantyDto({required String id, required String billId, String? lineItemId, DateTime? warrantyStart, required DateTime warrantyEnd, String? warrantyName, List<
ReminderDto> ? reminders, required bool notificationIsActivated}) -
WarrantyDto.fromJson(Map<
String, dynamic> json) -
factory
Properties
- billId ↔ String
-
Id of the bill.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ String
-
Id of the warranty.
read / write
- lineItemId ↔ String?
-
Id of the line item.
read / write
- notificationIsActivated ↔ bool
-
Flag if PushNotification should be sent or not
Default Value = true
read / write
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
read-onlyoverride
-
reminders
↔ List<
ReminderDto> ? -
List of reminders for the end date of th warranty.
Not more than 5 reminders can be defined.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.read-onlyinherited - warrantyEnd ↔ DateTime
-
End date of the warranty.
read / write
- warrantyName ↔ String?
-
Name of the warranty.
read / write
- warrantyStart ↔ DateTime?
-
Start date of the warranty.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited