toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['_id'] = this.sId;
  if (this.wallet != null) {
    data['wallet'] = this.wallet!.toJson();
  }
  // if (this.usedCoupons != null) {
  //   data['usedCoupons'] = this.usedCoupons!.map((v) => v.toJson()).toList();
  // }
  // if (this.ampReaderIds != null) {
  //   data['ampReaderIds'] = this.ampReaderIds!.map((v) => v.toJson()).toList();
  // }
  data['phoneNumber'] = this.phoneNumber;
  data['lastPurchasedOn'] = this.lastPurchasedOn;
  data['country'] = this.country;
  data['userCurrency'] = this.userCurrency;
  data['name'] = this.name;
  return data;
}