From 2986d08f1412005e0eaadb52870edd4562b4b091 Mon Sep 17 00:00:00 2001 From: Ricardo Boss Date: Wed, 14 Feb 2024 00:39:58 +0100 Subject: [PATCH] Added AdditionalDataHolder interface --- lib/kiota_abstractions.dart | 1 + lib/src/serialization/additional_data_holder.dart | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 lib/src/serialization/additional_data_holder.dart diff --git a/lib/kiota_abstractions.dart b/lib/kiota_abstractions.dart index 47b501a..44c1695 100644 --- a/lib/kiota_abstractions.dart +++ b/lib/kiota_abstractions.dart @@ -31,6 +31,7 @@ part 'src/request_information.dart'; part 'src/request_option.dart'; part 'src/response_handler.dart'; part 'src/response_handler_option.dart'; +part 'src/serialization/additional_data_holder.dart'; part 'src/serialization/parsable.dart'; part 'src/serialization/parsable_factory.dart'; part 'src/serialization/parsable_hook.dart'; diff --git a/lib/src/serialization/additional_data_holder.dart b/lib/src/serialization/additional_data_holder.dart new file mode 100644 index 0000000..9b6640e --- /dev/null +++ b/lib/src/serialization/additional_data_holder.dart @@ -0,0 +1,8 @@ +part of '../../kiota_abstractions.dart'; + +/// Defines a contract for models that can hold additional data besides the +/// properties defined in the model. +abstract class AdditionDataHolder { + /// Additional data that is not part of the model's properties. + Map additionalData = {}; +}