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.origin != null) {
    json[r'origin'] = this.origin;
  } else {
    json[r'origin'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.fulfillmentVersion != null) {
    json[r'fulfillmentVersion'] = this.fulfillmentVersion;
  } else {
    json[r'fulfillmentVersion'] = null;
  }
    json[r'items'] = this.items;
  return json;
}