CurrentMetricResult.fromJson constructor
Implementation
factory CurrentMetricResult.fromJson(Map<String, dynamic> json) {
return CurrentMetricResult(
collections: (json['Collections'] as List?)
?.whereNotNull()
.map((e) => CurrentMetricData.fromJson(e as Map<String, dynamic>))
.toList(),
dimensions: json['Dimensions'] != null
? Dimensions.fromJson(json['Dimensions'] as Map<String, dynamic>)
: null,
);
}