toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"client_reference_id": clientReferenceId,
"amount": amount,
"currency": currency,
"payment_method": paymentMethod,
"next_action": nextAction,
"status": status,
"metadata": metadata?.toJson(),
"created_at": createdAt?.toIso8601String(),
"expire_at": expireAt?.toIso8601String(),
};