SyncDeploymentJobResponse.fromJson constructor
SyncDeploymentJobResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SyncDeploymentJobResponse.fromJson(Map<String, dynamic> json) {
return SyncDeploymentJobResponse(
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(),
);
}