MetricFilter.fromJson constructor
MetricFilter.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MetricFilter.fromJson(Map<String, dynamic> json) {
return MetricFilter(
creationTime: json['creationTime'] as int?,
filterName: json['filterName'] as String?,
filterPattern: json['filterPattern'] as String?,
logGroupName: json['logGroupName'] as String?,
metricTransformations: (json['metricTransformations'] as List?)
?.whereNotNull()
.map((e) => MetricTransformation.fromJson(e as Map<String, dynamic>))
.toList(),
);
}