toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.currency != null) {
json[r'currency'] = this.currency;
} else {
json[r'currency'] = null;
}
json[r'items'] = this.items;
if (this.total != null) {
json[r'total'] = this.total;
} else {
json[r'total'] = null;
}
return json;
}