toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (action != null) 'action': action!,
      if (defaultResponsePlatforms != null)
        'defaultResponsePlatforms': defaultResponsePlatforms!,
      if (displayName != null) 'displayName': displayName!,
      if (endInteraction != null) 'endInteraction': endInteraction!,
      if (events != null) 'events': events!,
      if (followupIntentInfo != null)
        'followupIntentInfo': followupIntentInfo!,
      if (inputContextNames != null) 'inputContextNames': inputContextNames!,
      if (isFallback != null) 'isFallback': isFallback!,
      if (liveAgentHandoff != null) 'liveAgentHandoff': liveAgentHandoff!,
      if (messages != null) 'messages': messages!,
      if (mlDisabled != null) 'mlDisabled': mlDisabled!,
      if (name != null) 'name': name!,
      if (outputContexts != null) 'outputContexts': outputContexts!,
      if (parameters != null) 'parameters': parameters!,
      if (parentFollowupIntentName != null)
        'parentFollowupIntentName': parentFollowupIntentName!,
      if (priority != null) 'priority': priority!,
      if (resetContexts != null) 'resetContexts': resetContexts!,
      if (rootFollowupIntentName != null)
        'rootFollowupIntentName': rootFollowupIntentName!,
      if (trainingPhrases != null) 'trainingPhrases': trainingPhrases!,
      if (webhookState != null) 'webhookState': webhookState!,
    };