ListDetectorsResponse.fromJson constructor

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

Implementation

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