Payment.fromJson constructor

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

Implementation

Payment.fromJson(Map<String, dynamic> json)
    : amount = CurrencyAmount.fromJson(json["amount"]),
      destination = json["destination"],
      paths = (json["paths"] as List?)
          ?.map((e) => (e as List).map((e) => PathStep.fromJson(e)).toList())
          .toList(),
      invoiceId = json["invoice_id"],
      sendMax = json["send_max"],
      deliverMin = json["deliver_min"],
      destinationTag = json["destination_tag"],
      super.json(json);