ListDetectMitigationActionsTasksResponse.fromJson constructor

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

Implementation

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