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