toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['merchant_id'] = this.merchantId;
data['user_id'] = this.userId;
data['application_id'] = this.applicationId;
data['currency_code'] = this.currencyCode;
data['amount'] = this.amount;
data['type'] = this.type;
data['is_waiting'] = this.isWaiting;
data['is_canceled'] = this.isCanceled;
data['is_approuved'] = this.isApprouved;
data['canceled_at'] = this.canceledAt;
data['approuved_at'] = this.approuvedAt;
data['status'] = this.status;
data['deleted_at'] = this.deletedAt;
data['created_at'] = this.createdAt;
data['updated_at'] = this.updatedAt;
data['reference'] = this.reference;
data['designation'] = this.designation;
data['client_reference'] = this.clientReference;
data['reason'] = this.reason;
data['notif_url'] = this.notifUrl;
data['error_meta_data'] = this.errorMetaTransaction;
data['buyer_name'] = this.buyerName;
data['buyer_reference'] = this.buyerReference;
data['orange_payment_url'] = this.orangePaymentUrl;
data['orange_pay_token'] = this.orangePayToken;
data['payment_method_id'] = this.paymentMethodId;
data['payment_method_code'] = this.paymentMethodCode;
data['phone_number'] = this.phoneNumber;
data['is_initiated'] = this.isInitiated;
data['is_completed'] = this.isCompleted;
return data;
}