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