toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['name'] = this.name;
data['tax_class'] = this.taxClass;
data['tax_status'] = this.taxStatus;
data['total'] = this.total;
if (this.metaData != null) {
data['meta_data'] = this.metaData!.map((v) => v.toJson()).toList();
}
return data;
}