CreateOrderBody.fromJson constructor

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

Implementation

factory CreateOrderBody.fromJson(Map<String, dynamic> json) =>
    CreateOrderBody(
      amount: json["amount"] ?? null,
      buyerEmail: json["buyer_email"] ?? null,
      buyerName: json["buyer_name"] ?? null,
      buyerPhone: json["buyer_phone"] ?? null,
      description: json["description"] ?? "",
    );