ListDetectorModelVersionsResponse.fromJson constructor

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

Implementation

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