toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  if (companyName != null) {
    _json[r'company_name'] = companyName;
  }
  if (inviteId != null) {
    _json[r'invite_id'] = inviteId;
  }
  if (allowOpenInvite != null) {
    _json[r'allow_open_invite'] = allowOpenInvite;
  }
  return _json;
}