DescribeSimulationJobBatchResponse.fromJson constructor
DescribeSimulationJobBatchResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeSimulationJobBatchResponse.fromJson(
Map<String, dynamic> json) {
return DescribeSimulationJobBatchResponse(
arn: json['arn'] as String?,
batchPolicy: json['batchPolicy'] != null
? BatchPolicy.fromJson(json['batchPolicy'] as Map<String, dynamic>)
: null,
clientRequestToken: json['clientRequestToken'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
createdRequests: (json['createdRequests'] as List?)
?.whereNotNull()
.map((e) => SimulationJobSummary.fromJson(e as Map<String, dynamic>))
.toList(),
failedRequests: (json['failedRequests'] as List?)
?.whereNotNull()
.map((e) => FailedCreateSimulationJobRequest.fromJson(
e as Map<String, dynamic>))
.toList(),
failureCode:
(json['failureCode'] as String?)?.toSimulationJobBatchErrorCode(),
failureReason: json['failureReason'] as String?,
lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
pendingRequests: (json['pendingRequests'] as List?)
?.whereNotNull()
.map((e) => SimulationJobRequest.fromJson(e as Map<String, dynamic>))
.toList(),
status: (json['status'] as String?)?.toSimulationJobBatchStatus(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}