ShippingMethods.fromJson constructor

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

Implementation

ShippingMethods.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  selected = json['selected'];
  label = json['label'];
  type = json['type'];
  amount = json['amount'] != null ? UnitPrice.fromJson(json['amount']) : null;
}