ListSimulationJobBatchesResponse.fromJson constructor

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

Implementation

factory ListSimulationJobBatchesResponse.fromJson(Map<String, dynamic> json) {
  return ListSimulationJobBatchesResponse(
    nextToken: json['nextToken'] as String?,
    simulationJobBatchSummaries:
        (json['simulationJobBatchSummaries'] as List?)
            ?.whereNotNull()
            .map((e) =>
                SimulationJobBatchSummary.fromJson(e as Map<String, dynamic>))
            .toList(),
  );
}