fromJson static method
Implementation
static ShippingOption? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ShippingOption(
id: (json['id'] as String?) ?? '',
title: (json['title'] as String?) ?? '',
priceParts: List<LabeledPricePart>.from(
tdListFromJson(json['price_parts'])
.map((item) => LabeledPricePart.fromJson(tdMapFromJson(item)))
.whereType<LabeledPricePart>(),
),
);
}