toJson method

Map<String, dynamic> toJson()

Implementation

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