toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
_json[r'term'] = term;
if (teamId != null) {
_json[r'team_id'] = teamId;
}
if (notInTeamId != null) {
_json[r'not_in_team_id'] = notInTeamId;
}
if (inChannelId != null) {
_json[r'in_channel_id'] = inChannelId;
}
if (notInChannelId != null) {
_json[r'not_in_channel_id'] = notInChannelId;
}
if (inGroupId != null) {
_json[r'in_group_id'] = inGroupId;
}
if (groupConstrained != null) {
_json[r'group_constrained'] = groupConstrained;
}
if (allowInactive != null) {
_json[r'allow_inactive'] = allowInactive;
}
if (withoutTeam != null) {
_json[r'without_team'] = withoutTeam;
}
_json[r'limit'] = limit;
return _json;
}