Receipt class

Данные чека

Receipt

Inheritance
Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

Receipt({required Taxation taxation, required List<Items> items, String? email, String? phone, String? emailCompany})
Создает экземпляр данных чека
Receipt.fromJson(Map<String, dynamic> json)
Преобразование json в модель
factory

Properties

email String?
Электронная почта покупателя
final
emailCompany String?
Электронная почта продавца
final
equals Map<String, Object?>
Comparison objects
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
items List<Items>
Массив позиций чека с информацией о товарах.
final
phone String?
Телефон покупателя
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taxation Taxation
Система налогообложения:
final

Methods

compareLists<R>(List<R>? list1, List<R>? list2) bool
Determines whether list1 and list2 are equal.
inherited
copyWith({String? email, String? phone, String? emailCompany, Taxation? taxation, List<Items>? items}) Receipt
Создает экземпляр с заданными параметрами
override
genHash<R>(Iterable<R>? values) int
Returns a hashCode for equals.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Преобразование модели в json
override
toString() String
A string representation of this object.
inherited
validate() → void
Метод проверяет валидность данных
override

Operators

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