toJson method
Creates a ShippingOption object from JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'title': title,
'prices': prices.map((e) => e.toJson()).toList(),
}..removeWhere(_nullFilter);
}
Creates a ShippingOption object from JSON object
Map<String, dynamic> toJson() {
return {
'id': id,
'title': title,
'prices': prices.map((e) => e.toJson()).toList(),
}..removeWhere(_nullFilter);
}