Refund.fromJson constructor

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

Implementation

factory Refund.fromJson(Map<String, dynamic> json) => Refund(
      id: json["id"],
      dateCreated: DateTime.parse(json["date_created"]),
      dateCreatedGmt: DateTime.parse(json["date_created_gmt"]),
      amount: json["amount"],
      reason: json["reason"],
      refundedBy: json["refunded_by"],
      refundedPayment: json["refunded_payment"],
      metaData: List<dynamic>.from(json["meta_data"].map((x) => x)),
      lineItems: List<dynamic>.from(json["line_items"].map((x) => x)),
      links: Links.fromJson(json["_links"]),
    );