QueryDeployedModelsResponse.fromJson constructor

QueryDeployedModelsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory QueryDeployedModelsResponse.fromJson(Map<String, dynamic> json) {
  return QueryDeployedModelsResponse(
    deployedModels:
        decodeListMessage(json['deployedModels'], DeployedModel.fromJson) ??
        [],
    nextPageToken: json['nextPageToken'] ?? '',
    deployedModelRefs:
        decodeListMessage(
          json['deployedModelRefs'],
          DeployedModelRef.fromJson,
        ) ??
        [],
    totalDeployedModelCount: json['totalDeployedModelCount'] ?? 0,
    totalEndpointCount: json['totalEndpointCount'] ?? 0,
  );
}