Merge branch 'value-tostring' into 'main'

fix: convert field value to String instead of casting

See merge request TheOneWithTheBraid/dart_pkpass!3
This commit is contained in:
The one with the braid 2024-07-10 06:20:45 +00:00
commit 4fd0189af8

View file

@ -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),