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