toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (id != null) {
json[r'id'] = id;
}
if (from != null) {
json[r'from'] = from;
}
if (to != null) {
json[r'to'] = to;
}
if (deliveryEnvironment != null) {
json[r'deliveryEnvironment'] = deliveryEnvironment;
}
if (code != null) {
json[r'code'] = code;
}
if (codeType != null) {
json[r'codeType'] = codeType;
}
if (price != null) {
json[r'price'] = price;
}
if (cheap != null) {
json[r'cheap'] = cheap;
}
if (cheapest != null) {
json[r'cheapest'] = cheapest;
}
if (reimbursable != null) {
json[r'reimbursable'] = reimbursable;
}
json[r'reimbursements'] = reimbursements;
if (productId != null) {
json[r'productId'] = productId;
}
return json;
}