toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
data['name'] = name;
data['logo'] = logo;
data['slug'] = slug;
if (api != null) {
data['api'] = api!.toJson();
}
data['deleted'] = deleted;
data['id'] = id;
return data;
}