toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.orderItemId != null) {
json[r'orderItemId'] = this.orderItemId;
} else {
json[r'orderItemId'] = null;
}
if (this.productType != null) {
json[r'productType'] = this.productType;
} else {
json[r'productType'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.reason != null) {
json[r'reason'] = this.reason;
} else {
json[r'reason'] = null;
}
if (this.preview != null) {
json[r'preview'] = this.preview;
} else {
json[r'preview'] = null;
}
return json;
}