From 7997967100c078e57066bc4fcdd84373c2ebbd3d Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Fri, 1 Nov 2024 10:29:45 +0100 Subject: [PATCH] feat: make unnamed ThingDescription constructor public --- lib/src/core/definitions/thing_description.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/core/definitions/thing_description.dart b/lib/src/core/definitions/thing_description.dart index b88553ea..caf46477 100644 --- a/lib/src/core/definitions/thing_description.dart +++ b/lib/src/core/definitions/thing_description.dart @@ -23,7 +23,7 @@ import "version_info.dart"; @immutable class ThingDescription { /// Creates a new Thing Description object. - const ThingDescription._({ + const ThingDescription({ required this.context, required this.title, required this.security, @@ -114,7 +114,7 @@ class ThingDescription { final additionalFields = json.parseAdditionalFields(prefixMapping, parsedFields); - return ThingDescription._( + return ThingDescription( context: context, title: title, titles: titles,