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