CreateDeploymentJobResponse.fromJson constructor
CreateDeploymentJobResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreateDeploymentJobResponse.fromJson(Map<String, dynamic> json) {
return CreateDeploymentJobResponse(
arn: json['arn'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
deploymentApplicationConfigs: (json['deploymentApplicationConfigs']
as List?)
?.whereNotNull()
.map((e) =>
DeploymentApplicationConfig.fromJson(e as Map<String, dynamic>))
.toList(),
deploymentConfig: json['deploymentConfig'] != null
? DeploymentConfig.fromJson(
json['deploymentConfig'] as Map<String, dynamic>)
: null,
failureCode: (json['failureCode'] as String?)?.toDeploymentJobErrorCode(),
failureReason: json['failureReason'] as String?,
fleet: json['fleet'] as String?,
status: (json['status'] as String?)?.toDeploymentStatus(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}