toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (from != null) {
json[r'from'] = from;
}
if (to != null) {
json[r'to'] = to;
}
if (contentType != null) {
json[r'contentType'] = contentType;
}
if (contentMultiplier != null) {
json[r'contentMultiplier'] = contentMultiplier;
}
if (packSpecification != null) {
json[r'packSpecification'] = packSpecification;
}
if (deviceType != null) {
json[r'deviceType'] = deviceType;
}
if (packagingType != null) {
json[r'packagingType'] = packagingType;
}
return json;
}