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