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