toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (fallbackSettings != null) 'fallbackSettings': fallbackSettings!,
      if (generativeSafetySettings != null)
        'generativeSafetySettings': generativeSafetySettings!,
      if (knowledgeConnectorSettings != null)
        'knowledgeConnectorSettings': knowledgeConnectorSettings!,
      if (languageCode != null) 'languageCode': languageCode!,
      if (name != null) 'name': name!,
    };