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