ListDetectorModelsResponse.fromJson constructor

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

Implementation

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