toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (deployedModels.isNotDefault)
    'deployedModels': [for (final i in deployedModels) i.toJson()],
  if (nextPageToken.isNotDefault) 'nextPageToken': nextPageToken,
  if (deployedModelRefs.isNotDefault)
    'deployedModelRefs': [for (final i in deployedModelRefs) i.toJson()],
  if (totalDeployedModelCount.isNotDefault)
    'totalDeployedModelCount': totalDeployedModelCount,
  if (totalEndpointCount.isNotDefault)
    'totalEndpointCount': totalEndpointCount,
};