toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
json[r'subject'] = this.subject;
json[r'level'] = this.level;
json[r'prices'] = this.prices;
return json;
}