toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
if (this.key != null) {
json[r'key'] = this.key;
} else {
json[r'key'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
json[r'default_role_key'] = this.defaultRoleKey;
json[r'creator_role_key'] = this.creatorRoleKey;
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
json[r'roles'] = this.roles;
return json;
}