CreatedOrderModel.fromJson constructor

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

Implementation

factory CreatedOrderModel.fromJson(Map<String, dynamic> json) =>
    CreatedOrderModel(
      orderId: json["order_id"] == null ? null : json["order_id"],
      name: json["name"] == null ? null : json["name"],
      email: json["email"] == null ? null : json["email"],
      phone: json["phone"] == null ? null : json["phone"],
      amount: json["amount"] == null ? null : json["amount"],
    );