From 5b608d4768930e1bf98d7ebffc20c9d4443484c1 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Thu, 21 Dec 2023 15:02:46 +0100 Subject: [PATCH] fix: add missing parsing of @type at the TD level --- lib/src/definitions/thing_description.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/definitions/thing_description.dart b/lib/src/definitions/thing_description.dart index 723d49a4..652a7f16 100644 --- a/lib/src/definitions/thing_description.dart +++ b/lib/src/definitions/thing_description.dart @@ -175,6 +175,7 @@ class ThingDescription { final Set parsedFields = {}; context.addAll(json.parseContext(prefixMapping, parsedFields)); + atType = json.parseArrayField('@type', parsedFields); title = json.parseRequiredField('title', parsedFields); titles.addAll(json.parseMapField('titles', parsedFields) ?? {}); description = json.parseField('description', parsedFields);