toJson method

Map<String?, dynamic> toJson()

Implementation

Map<String?, dynamic> toJson() {
  final Map<String?, dynamic> data = new Map<String?, dynamic>();
  data['clientID'] = this.clientID;
  data['accessToken'] = this.accessToken;
  data['value'] = this.value;
  data['paymentCode'] = this.paymentCode;
  data['installments'] = this.installments;
  data['email'] = this.email;
  data['merchantCode'] = this.merchantCode;
  data['reference'] = this.reference;
  if (this.items != null) {
    data['items'] = this.items!.map((item) => item.toJson()).toList();
  }
  return data;
}