fromJson static method
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'],
),
);
}