Items.fromJson constructor

Items.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Items.fromJson(Map<String, dynamic> json) {
  description = json['description'];
  name = json['name'];
  unitPrice = json['unitPrice'] != null
      ? UnitPrice.fromJson(json['unitPrice'])
      : null;
  quantity = json['quantity'];
  total = json['total'] != null ? UnitPrice.fromJson(json['total']) : null;
  details = json['details'];
}