toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.publicId != null) {
json[r'publicId'] = this.publicId;
} else {
json[r'publicId'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.value != null) {
json[r'value'] = this.value;
} else {
json[r'value'] = null;
}
if (this.price != null) {
json[r'price'] = this.price;
} else {
json[r'price'] = null;
}
json[r'requiredInputs'] = this.requiredInputs;
if (this.details != null) {
json[r'details'] = this.details;
} else {
json[r'details'] = null;
}
return json;
}