DeploymentConfigInfo.fromJson constructor
DeploymentConfigInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DeploymentConfigInfo.fromJson(Map<String, dynamic> json) {
return DeploymentConfigInfo(
computePlatform:
(json['computePlatform'] as String?)?.toComputePlatform(),
createTime: timeStampFromJson(json['createTime']),
deploymentConfigId: json['deploymentConfigId'] as String?,
deploymentConfigName: json['deploymentConfigName'] as String?,
minimumHealthyHosts: json['minimumHealthyHosts'] != null
? MinimumHealthyHosts.fromJson(
json['minimumHealthyHosts'] as Map<String, dynamic>)
: null,
trafficRoutingConfig: json['trafficRoutingConfig'] != null
? TrafficRoutingConfig.fromJson(
json['trafficRoutingConfig'] as Map<String, dynamic>)
: null,
);
}