TrajectoryExactMatchResults.fromJson constructor
TrajectoryExactMatchResults.fromJson(
- Object? j
Implementation
factory TrajectoryExactMatchResults.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return TrajectoryExactMatchResults(
trajectoryExactMatchMetricValues:
switch (json['trajectoryExactMatchMetricValues']) {
null => [],
List<Object?> $1 => [
for (final i in $1) TrajectoryExactMatchMetricValue.fromJson(i),
],
_ => throw const FormatException(
'"trajectoryExactMatchMetricValues" is not a list',
),
},
);
}