AuthorizationReceiptItem.fromJson constructor
AuthorizationReceiptItem.fromJson(
- Object? json
Implementation
factory AuthorizationReceiptItem.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AuthorizationReceiptItem(
description:
map['description'] == null ? null : (map['description'] as String),
quantity: map['quantity'] == null ? null : (map['quantity'] as String),
total: map['total'] == null ? null : (map['total'] as num).toInt(),
unitCost:
map['unit_cost'] == null ? null : (map['unit_cost'] as num).toInt(),
);
}