toJson method
Implementation
Map<String, Object?> toJson() {
var contexts = this.contexts;
var data = this.data;
var description = this.description;
var id = this.id;
var name = this.name;
var self = this.self;
final json = <String, Object?>{};
json[r'contexts'] = contexts.map((i) => i.toJson()).toList();
if (data != null) {
json[r'data'] = data;
}
if (description != null) {
json[r'description'] = description;
}
json[r'id'] = id;
json[r'name'] = name;
json[r'self'] = self;
return json;
}