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