toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (fileData != null) 'fileData': fileData!,
      if (functionCall != null) 'functionCall': functionCall!,
      if (functionResponse != null) 'functionResponse': functionResponse!,
      if (inlineData != null) 'inlineData': inlineData!,
      if (text != null) 'text': text!,
      if (videoMetadata != null) 'videoMetadata': videoMetadata!,
    };