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