ValidatedOrderInfo.fromJson constructor

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

Parse from a json

Implementation

factory ValidatedOrderInfo.fromJson(Map<String, dynamic> json) => ValidatedOrderInfo(
  orderInfoId: json['order_info_id'],
  shippingOptions: List<ShippingOption>.from((json['shipping_options'] ?? []).map((item) => ShippingOption.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);