aas_core_rc02.jsonization
Provide de/serialization of AAS classes to/from JSON.
We can not use one-pass deserialization for JSON since the object
properties do not have fixed order, and hence we can not read
modelType property ahead of the remaining properties.
- class aas_core3_rc02.jsonization.PropertySegment(instance: Mapping[str, Any], name: str)[source]
Represent a property on a path to the erroneous value.
- instance: Final[Mapping[str, Any]]
Instance that contains the property
- name: Final[str]
Name of the property
- class aas_core3_rc02.jsonization.IndexSegment(container: Iterable[Any], index: int)[source]
Represent an index access on a path to the erroneous value.
- container: Final[Iterable[Any]]
Container that contains the item
- index: Final[int]
Index of the item
- class aas_core3_rc02.jsonization.Path[source]
Represent the relative path to the erroneous value.
- property segments: Sequence[Union[PropertySegment, IndexSegment]]
Get the segments of the path.
- exception aas_core3_rc02.jsonization.DeserializationException(cause: str)[source]
Signal that the JSON de-serialization could not be performed.
- cause: Final[str]
Human-readable explanation of the exception’s cause
- aas_core3_rc02.jsonization.has_semantics_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) HasSemantics[source]
Parse an instance of
types.HasSemanticsfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.HasSemantics- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.extension_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Extension[source]
Parse an instance of
types.Extensionfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Extension- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.has_extensions_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) HasExtensions[source]
Parse an instance of
types.HasExtensionsfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.HasExtensions- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.referable_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Referable[source]
Parse an instance of
types.Referablefrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.Referable- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.identifiable_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Identifiable[source]
Parse an instance of
types.Identifiablefrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.Identifiable- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.modeling_kind_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) ModelingKind[source]
Convert the JSON-able structure
jsonableto a literal oftypes.ModelingKind.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.has_kind_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) HasKind[source]
Parse an instance of
types.HasKindfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.HasKind- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.has_data_specification_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) HasDataSpecification[source]
Parse an instance of
types.HasDataSpecificationfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.HasDataSpecification- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.administrative_information_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) AdministrativeInformation[source]
Parse an instance of
types.AdministrativeInformationfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.AdministrativeInformation- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.qualifiable_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Qualifiable[source]
Parse an instance of
types.Qualifiablefrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.Qualifiable- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.qualifier_kind_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) QualifierKind[source]
Convert the JSON-able structure
jsonableto a literal oftypes.QualifierKind.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.qualifier_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Qualifier[source]
Parse an instance of
types.Qualifierfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Qualifier- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.asset_administration_shell_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) AssetAdministrationShell[source]
Parse an instance of
types.AssetAdministrationShellfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.AssetAdministrationShell- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.asset_information_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) AssetInformation[source]
Parse an instance of
types.AssetInformationfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.AssetInformation- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.resource_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Resource[source]
Parse an instance of
types.Resourcefrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Resource- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.asset_kind_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) AssetKind[source]
Convert the JSON-able structure
jsonableto a literal oftypes.AssetKind.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.specific_asset_id_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) SpecificAssetId[source]
Parse an instance of
types.SpecificAssetIdfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.SpecificAssetId- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.submodel_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Submodel[source]
Parse an instance of
types.Submodelfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Submodel- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.submodel_element_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) SubmodelElement[source]
Parse an instance of
types.SubmodelElementfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.SubmodelElement- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.relationship_element_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) RelationshipElement[source]
Parse an instance of
types.RelationshipElementfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.RelationshipElement- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.aas_submodel_elements_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) AasSubmodelElements[source]
Convert the JSON-able structure
jsonableto a literal oftypes.AasSubmodelElements.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.submodel_element_list_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) SubmodelElementList[source]
Parse an instance of
types.SubmodelElementListfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.SubmodelElementList- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.submodel_element_collection_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) SubmodelElementCollection[source]
Parse an instance of
types.SubmodelElementCollectionfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.SubmodelElementCollection- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.data_element_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) DataElement[source]
Parse an instance of
types.DataElementfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.DataElement- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.property_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Property[source]
Parse an instance of
types.Propertyfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Property- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.multi_language_property_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) MultiLanguageProperty[source]
Parse an instance of
types.MultiLanguagePropertyfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.MultiLanguageProperty- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.range_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Range[source]
Parse an instance of
types.Rangefrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Range- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.reference_element_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) ReferenceElement[source]
Parse an instance of
types.ReferenceElementfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.ReferenceElement- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.blob_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Blob[source]
Parse an instance of
types.Blobfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Blob- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.file_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) File[source]
Parse an instance of
types.Filefrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.File- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.annotated_relationship_element_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) AnnotatedRelationshipElement[source]
Parse an instance of
types.AnnotatedRelationshipElementfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.AnnotatedRelationshipElement- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.entity_type_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) EntityType[source]
Convert the JSON-able structure
jsonableto a literal oftypes.EntityType.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.entity_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Entity[source]
Parse an instance of
types.Entityfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Entity- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.direction_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Direction[source]
Convert the JSON-able structure
jsonableto a literal oftypes.Direction.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.state_of_event_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) StateOfEvent[source]
Convert the JSON-able structure
jsonableto a literal oftypes.StateOfEvent.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.event_payload_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) EventPayload[source]
Parse an instance of
types.EventPayloadfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.EventPayload- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.event_element_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) EventElement[source]
Parse an instance of
types.EventElementfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.EventElement- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.basic_event_element_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) BasicEventElement[source]
Parse an instance of
types.BasicEventElementfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.BasicEventElement- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.operation_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Operation[source]
Parse an instance of
types.Operationfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Operation- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.operation_variable_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) OperationVariable[source]
Parse an instance of
types.OperationVariablefrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.OperationVariable- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.capability_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Capability[source]
Parse an instance of
types.Capabilityfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Capability- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.concept_description_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) ConceptDescription[source]
Parse an instance of
types.ConceptDescriptionfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.ConceptDescription- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.reference_types_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) ReferenceTypes[source]
Convert the JSON-able structure
jsonableto a literal oftypes.ReferenceTypes.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.reference_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Reference[source]
Parse an instance of
types.Referencefrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Reference- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.key_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Key[source]
Parse an instance of
types.Keyfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Key- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.key_types_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) KeyTypes[source]
Convert the JSON-able structure
jsonableto a literal oftypes.KeyTypes.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.data_type_def_xsd_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) DataTypeDefXsd[source]
Convert the JSON-able structure
jsonableto a literal oftypes.DataTypeDefXsd.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.lang_string_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) LangString[source]
Parse an instance of
types.LangStringfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.LangString- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.environment_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) Environment[source]
Parse an instance of
types.Environmentfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.Environment- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.data_specification_content_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) DataSpecificationContent[source]
Parse an instance of
types.DataSpecificationContentfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Concrete instance of
types.DataSpecificationContent- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.embedded_data_specification_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) EmbeddedDataSpecification[source]
Parse an instance of
types.EmbeddedDataSpecificationfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.EmbeddedDataSpecification- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.data_type_iec_61360_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) DataTypeIEC61360[source]
Convert the JSON-able structure
jsonableto a literal oftypes.DataTypeIEC61360.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.level_type_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) LevelType[source]
Convert the JSON-able structure
jsonableto a literal oftypes.LevelType.- Parameters
jsonable¶ – JSON-able structure to be parsed
- Returns
parsed literal
- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.value_reference_pair_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) ValueReferencePair[source]
Parse an instance of
types.ValueReferencePairfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.ValueReferencePair- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.value_list_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) ValueList[source]
Parse an instance of
types.ValueListfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.ValueList- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.data_specification_iec_61360_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) DataSpecificationIEC61360[source]
Parse an instance of
types.DataSpecificationIEC61360from the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.DataSpecificationIEC61360- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.data_specification_physical_unit_from_jsonable(jsonable: Union[bool, int, float, str, Sequence[Any], Mapping[str, Any]]) DataSpecificationPhysicalUnit[source]
Parse an instance of
types.DataSpecificationPhysicalUnitfrom the JSON-able structurejsonable.- Parameters
jsonable¶ – structure to be parsed
- Returns
Parsed instance of
types.DataSpecificationPhysicalUnit- Raise
DeserializationExceptionif unexpectedjsonable
- aas_core3_rc02.jsonization.to_jsonable(that: Class) Union[bool, int, float, str, List[Any], MutableMapping[str, Any]][source]
Convert
thatto a JSON-able structure.- Parameters
that¶ – AAS data to be recursively converted to a JSON-able structure
- Returns
JSON-able structure which can be further encoded with, e.g.,
json