ShippingOption.fromJson constructor

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

Parse from a json

Implementation

factory ShippingOption.fromJson(Map<String, dynamic> json) => ShippingOption(
  id: json['id'],
  title: json['title'],
  priceParts: List<LabeledPricePart>.from((json['price_parts'] ?? []).map((item) => LabeledPricePart.fromJson(item)).toList()),
);