toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "subscriberId": subscriberId,
      "bookingId": bookingId,
      "amount": amount,
      "vat": vat,
      "vat_amount": vatAmount,
      "fee": fee,
      "fee_amount": feeAmount,
      "total_amount": totalAmount,
      "amount_to_pay": amountToPay,
      "currency": currency,
      "type": type,
      "purpose": purpose,
      "status": status,
      "paymentAddress": paymentAddress,
      "transactionId": transactionId,
      "transactionHash": transactionHash,
      "meta": meta != null ? jsonEncode(meta!.toJson()) : null,
      "provider": provider,
      "paymentDate": paymentDate?.toIso8601String(),
      "createdAt": createdAt?.toIso8601String(),
      "updatedAt": updatedAt?.toIso8601String(),
    };