toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json[r'team_id'] = teamId;
  if (channelId != null) {
    _json[r'channel_id'] = channelId;
  }
  if (creatorId != null) {
    _json[r'creator_id'] = creatorId;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  _json[r'display_name'] = displayName;
  _json[r'trigger_words'] = triggerWords;
  if (triggerWhen != null) {
    _json[r'trigger_when'] = triggerWhen;
  }
  _json[r'callback_urls'] = callbackUrls;
  _json[r'content_type'] = contentType;
  return _json;
}