GetDetectorsResult.fromJson constructor

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

Implementation

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