minos.common.model.serializers.avro.data.decoder module

class minos.common.model.serializers.avro.data.decoder.AvroDataDecoder(type_=None)[source]

Bases: minos.common.model.serializers.abc.DataDecoder

Avro Data Decoder class.

__init__(type_=None)[source]
build(data, type_=<class 'minos.common.model.types.constants.MissingSentinel'>, **kwargs)[source]

Cast data type according to the field definition.

Parameters
  • data (typing.Any) – Data to be casted.

  • type – The type of the decoded data.

Return type

typing.Any

Returns

The casted object.