mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-05 12:58:47 +00:00
fix: convert field value to String instead of casting
sometimes, a silly vendor will make their pass field a number in JSON instead of a string; the iOS Wallet app displays it just fine though
This commit is contained in:
parent
b702cc940d
commit
325ee81d1f
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ class DictionaryField {
|
|||
factory DictionaryField.fromJson(Map<String, Object?> json) =>
|
||||
DictionaryField(
|
||||
key: json['key'] as String,
|
||||
value: DictionaryValue.parse(json['value'] as String),
|
||||
value: DictionaryValue.parse(json['value'].toString()),
|
||||
attributedValue: json['attributedValue'] == null
|
||||
? null
|
||||
: DictionaryValue.parse(json['attributedValue'] as String),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue