fix: invalid JSON parser for eventTicket

Signed-off-by: The one with the braid <the-one@with-the-braid.cf>
This commit is contained in:
The one with the braid 2023-09-08 09:07:45 +02:00
parent 1c54863f7b
commit c8b274c624
2 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@
<entry key="archive"> <entry key="archive">
<value> <value>
<list> <list>
<option value="$USER_HOME$/.pub-cache/hosted/pub.dev/archive-3.3.7/lib" /> <option value="$USER_HOME$/.pub-cache/hosted/pub.dev/archive-3.3.8/lib" />
</list> </list>
</value> </value>
</entry> </entry>
@ -369,7 +369,7 @@
<entry key="webkit_inspection_protocol"> <entry key="webkit_inspection_protocol">
<value> <value>
<list> <list>
<option value="$USER_HOME$/.pub-cache/hosted/pub.dev/webkit_inspection_protocol-1.2.0/lib" /> <option value="$USER_HOME$/.pub-cache/hosted/pub.dev/webkit_inspection_protocol-1.2.1/lib" />
</list> </list>
</value> </value>
</entry> </entry>
@ -385,7 +385,7 @@
<CLASSES> <CLASSES>
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/_fe_analyzer_shared-64.0.0/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/_fe_analyzer_shared-64.0.0/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/analyzer-6.2.0/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/analyzer-6.2.0/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/archive-3.3.7/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/archive-3.3.8/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/args-2.4.2/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/args-2.4.2/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/async-2.11.0/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/async-2.11.0/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/barcode-2.2.4/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/barcode-2.2.4/lib" />
@ -435,7 +435,7 @@
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/vm_service-11.10.0/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/vm_service-11.10.0/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/watcher-1.1.0/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/watcher-1.1.0/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/web_socket_channel-2.4.0/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/web_socket_channel-2.4.0/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/webkit_inspection_protocol-1.2.0/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/webkit_inspection_protocol-1.2.1/lib" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/yaml-3.1.2/lib" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/yaml-3.1.2/lib" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />

View file

@ -148,7 +148,7 @@ class PassMetadata {
eventTicket: json['eventTicket'] == null eventTicket: json['eventTicket'] == null
? null ? null
: PassStructureDictionary.fromJson( : PassStructureDictionary.fromJson(
(json['coupon'] as Map).cast<String, Object?>(), (json['eventTicket'] as Map).cast<String, Object?>(),
), ),
generic: json['generic'] == null generic: json['generic'] == null
? null ? null