toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (contents != null) 'contents': contents!,
  if (createTime != null) 'createTime': createTime!,
  if (displayName != null) 'displayName': displayName!,
  if (encryptionSpec != null) 'encryptionSpec': encryptionSpec!,
  if (expireTime != null) 'expireTime': expireTime!,
  if (model != null) 'model': model!,
  if (name != null) 'name': name!,
  if (systemInstruction != null) 'systemInstruction': systemInstruction!,
  if (toolConfig != null) 'toolConfig': toolConfig!,
  if (tools != null) 'tools': tools!,
  if (ttl != null) 'ttl': ttl!,
  if (updateTime != null) 'updateTime': updateTime!,
  if (usageMetadata != null) 'usageMetadata': usageMetadata!,
};