toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"payment_method_id": paymentMethodId,
"payment_type_id": paymentTypeId,
"status": status,
"status_detail": statusDetail,
"description": description,
"transaction_amount": transactionAmount,
"installments": installments,
"statement_descriptor": statementDescriptor,
"card": card != null ? card!.toJson() : "",
"notification_url": notificationUrl,
"payer": {
"first_name": firstName,
"email": email,
"identification": {"number": docNumber, "type": "CPF"},
"phone": {"area_code": "55", "number": contact}
},
"barcode": barCode,
"qrCode": qrCode,
"qrCodeRender": qrCodeRender
};