toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
}
if (name != null) {
_json[r'name'] = name;
}
if (description != null) {
_json[r'description'] = description;
}
if (createAt != null) {
_json[r'create_at'] = createAt;
}
if (updateAt != null) {
_json[r'update_at'] = updateAt;
}
if (deleteAt != null) {
_json[r'delete_at'] = deleteAt;
}
if (scope != null) {
_json[r'scope'] = scope;
}
if (defaultTeamAdminRole != null) {
_json[r'default_team_admin_role'] = defaultTeamAdminRole;
}
if (defaultTeamUserRole != null) {
_json[r'default_team_user_role'] = defaultTeamUserRole;
}
if (defaultChannelAdminRole != null) {
_json[r'default_channel_admin_role'] = defaultChannelAdminRole;
}
if (defaultChannelUserRole != null) {
_json[r'default_channel_user_role'] = defaultChannelUserRole;
}
return _json;
}