fromJson static method

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

Creates a object from a json

Implementation

static ShippingOption fromJson(Map<String, dynamic> json) {
  return ShippingOption(
    id: json['id']!,
    title: json['title']!,
    prices: LabeledPrice.listFromJsonArray(json['prices']!),
  );
}