toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.created != null) if (this.created != null) data['created'] = this.created;
if (this.customerId != null) data['customerId'] = this.customerId;
if (this.id != null) data['id'] = this.id;
if (this.livemode != null) data['livemode'] = this.livemode;
if (this.type != null) data['type'] = this.type;
if (this.billingDetails != null) {
data['billingDetails'] = this.billingDetails!.toJson();
}
if (this.card != null) {
data['card'] = this.card!.toJson();
}
return data;
}