GetAnomaliesResponse.fromJson constructor

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

Implementation

factory GetAnomaliesResponse.fromJson(Map<String, dynamic> json) {
  return GetAnomaliesResponse(
    anomalies: (json['Anomalies'] as List)
        .whereNotNull()
        .map((e) => Anomaly.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['NextPageToken'] as String?,
  );
}