GetDeploymentStatusResponse.fromJson constructor
GetDeploymentStatusResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetDeploymentStatusResponse.fromJson(Map<String, dynamic> json) {
return GetDeploymentStatusResponse(
deploymentStatus: json['DeploymentStatus'] as String?,
deploymentType: (json['DeploymentType'] as String?)?.toDeploymentType(),
errorDetails: (json['ErrorDetails'] as List?)
?.whereNotNull()
.map((e) => ErrorDetail.fromJson(e as Map<String, dynamic>))
.toList(),
errorMessage: json['ErrorMessage'] as String?,
updatedAt: json['UpdatedAt'] as String?,
);
}