fromJson static method

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

Creates a object from a json

Implementation

static OrderInfo fromJson(Map<String, dynamic> json) {
  return OrderInfo(
    name: json['name'],
    phoneNumber: json['phone_number'],
    email: json['email'],
    shippingAddress: callIfNotNull(
      ShippingAddress.fromJson,
      json['shipping_address'],
    ),
  );
}