toJson method
Implementation
Map<String?, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['accessKey'] = this.accessKey;
data['amount'] = this.amount;
data['applicationName'] = this.applicationName;
data['authCode'] = this.authCode;
data['brand'] = this.brand;
data['cieloCode'] = this.cieloCode;
data['description'] = this.description;
data['discountedAmount'] = this.discountedAmount;
data['externalId'] = this.externalId;
data['id'] = this.id;
data['installments'] = this.installments;
data['mask'] = this.mask;
data['merchantCode'] = this.merchantCode;
if (this.paymentFields != null) {
data['paymentFields'] = this.paymentFields!.toJson();
}
data['primaryCode'] = this.primaryCode;
data['requestDate'] = this.requestDate;
data['secondaryCode'] = this.secondaryCode;
data['terminal'] = this.terminal;
return data;
}