toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (bigQuerySource != null) 'bigQuerySource': bigQuerySource!.toJson(),
  if (featureRegistrySource != null)
    'featureRegistrySource': featureRegistrySource!.toJson(),
  if (vertexRagSource != null) 'vertexRagSource': vertexRagSource!.toJson(),
  if (name.isNotDefault) 'name': name,
  if (createTime != null) 'createTime': createTime!.toJson(),
  if (updateTime != null) 'updateTime': updateTime!.toJson(),
  if (etag.isNotDefault) 'etag': etag,
  if (labels.isNotDefault) 'labels': labels,
  if (syncConfig != null) 'syncConfig': syncConfig!.toJson(),
  if (vectorSearchConfig != null)
    'vectorSearchConfig': vectorSearchConfig!.toJson(),
  if (indexConfig != null) 'indexConfig': indexConfig!.toJson(),
  if (optimizedConfig != null) 'optimizedConfig': optimizedConfig!.toJson(),
  if (serviceAgentType.isNotDefault)
    'serviceAgentType': serviceAgentType.toJson(),
  if (serviceAccountEmail.isNotDefault)
    'serviceAccountEmail': serviceAccountEmail,
  if (satisfiesPzs.isNotDefault) 'satisfiesPzs': satisfiesPzs,
  if (satisfiesPzi.isNotDefault) 'satisfiesPzi': satisfiesPzi,
  if (bigtableMetadata != null)
    'bigtableMetadata': bigtableMetadata!.toJson(),
};