GetDeploymentResponse.fromJson constructor

GetDeploymentResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetDeploymentResponse.fromJson(Map<String, dynamic> json) {
  return GetDeploymentResponse(
    components: (json['components'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(
            k,
            ComponentDeploymentSpecification.fromJson(
                e as Map<String, dynamic>))),
    creationTimestamp: timeStampFromJson(json['creationTimestamp']),
    deploymentId: json['deploymentId'] as String?,
    deploymentName: json['deploymentName'] as String?,
    deploymentPolicies: json['deploymentPolicies'] != null
        ? DeploymentPolicies.fromJson(
            json['deploymentPolicies'] as Map<String, dynamic>)
        : null,
    deploymentStatus:
        (json['deploymentStatus'] as String?)?.toDeploymentStatus(),
    iotJobArn: json['iotJobArn'] as String?,
    iotJobConfiguration: json['iotJobConfiguration'] != null
        ? DeploymentIoTJobConfiguration.fromJson(
            json['iotJobConfiguration'] as Map<String, dynamic>)
        : null,
    iotJobId: json['iotJobId'] as String?,
    isLatestForTarget: json['isLatestForTarget'] as bool?,
    revisionId: json['revisionId'] as String?,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    targetArn: json['targetArn'] as String?,
  );
}