Pattern.fromJson constructor
Pattern.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Pattern.fromJson(Map<String, dynamic> json) {
return Pattern(
countersToAggregate: (json['countersToAggregate'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
description: json['description'] as String?,
id: json['id'] as String?,
name: json['name'] as String?,
resolutionSteps: json['resolutionSteps'] as String?,
targetFrames: (json['targetFrames'] as List?)
?.whereNotNull()
.map((e) =>
(e as List).whereNotNull().map((e) => e as String).toList())
.toList(),
thresholdPercent: json['thresholdPercent'] as double?,
);
}