toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (conversationContext != null)
        'conversationContext': conversationContext!,
      if (generator != null) 'generator': generator!,
      if (generatorName != null) 'generatorName': generatorName!,
      if (triggerEvents != null) 'triggerEvents': triggerEvents!,
    };