fix: update key in MorphFeature.fromJson function (#1925)

This commit is contained in:
ggurdin 2025-02-25 16:31:52 -05:00 committed by GitHub
parent 97b8d61afe
commit 7271f6da10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ class MorphFeature {
factory MorphFeature.fromJson(Map<String, dynamic> json) {
return MorphFeature(
feature: json['feature'],
tags: List<String>.from(json['tag']),
tags: List<String>.from(json['tag'] ?? json['tags']),
);
}