GetTimeSeriesServiceStatisticsResult.fromJson constructor

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

Implementation

factory GetTimeSeriesServiceStatisticsResult.fromJson(
    Map<String, dynamic> json) {
  return GetTimeSeriesServiceStatisticsResult(
    containsOldGroupVersions: json['ContainsOldGroupVersions'] as bool?,
    nextToken: json['NextToken'] as String?,
    timeSeriesServiceStatistics: (json['TimeSeriesServiceStatistics']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            TimeSeriesServiceStatistics.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}