Level3LineItems.fromJson constructor
Level3LineItems.fromJson(
- Object? json
Implementation
factory Level3LineItems.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return Level3LineItems(
discountAmount: map['discount_amount'] == null
? null
: (map['discount_amount'] as num).toInt(),
productCode: (map['product_code'] as String),
productDescription: (map['product_description'] as String),
quantity:
map['quantity'] == null ? null : (map['quantity'] as num).toInt(),
taxAmount:
map['tax_amount'] == null ? null : (map['tax_amount'] as num).toInt(),
unitCost:
map['unit_cost'] == null ? null : (map['unit_cost'] as num).toInt(),
);
}