CreateChargeResponse.fromJson constructor

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

Implementation

factory CreateChargeResponse.fromJson(Map<String, dynamic> json) {
  return CreateChargeResponse(
    invoiceId: json['invoice_id'] as String,
    paymentUrl: json['paymentUrl'] as String?,
    status: json['status'] as String,
    message: json['message'] as String?,
  );
}