ListCustomMetricsResponse.fromJson constructor

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

Implementation

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