toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (term != null) {
    _json[r'term'] = term;
  }
  if (page != null) {
    _json[r'page'] = page;
  }
  if (perPage != null) {
    _json[r'per_page'] = perPage;
  }
  if (allowOpenInvite != null) {
    _json[r'allow_open_invite'] = allowOpenInvite;
  }
  if (groupConstrained != null) {
    _json[r'group_constrained'] = groupConstrained;
  }
  _json[r'exclude_policy_constrained'] = excludePolicyConstrained;
  return _json;
}