DeployedModel_Status.fromJson constructor

DeployedModel_Status.fromJson(
  1. Object? j
)

Implementation

factory DeployedModel_Status.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return DeployedModel_Status(
    message: switch (json['message']) {
      null => '',
      Object $1 => decodeString($1),
    },
    lastUpdateTime: switch (json['lastUpdateTime']) {
      null => null,
      Object $1 => protobuf.Timestamp.fromJson($1),
    },
    availableReplicaCount: switch (json['availableReplicaCount']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
  );
}