toJson method

  1. @override
Object toJson()

Implementation

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