APIencoderavro_encoderVersion: 0.7.1On this pageavro_encoderfastkafka.encoder.avro_encoder​avro_encoder​def avro_encoder(msg: pydantic.main.BaseModel) -> bytesEncoder to encode pydantic instances to avro messageParameters:msg: An instance of pydantic basemodelReturns:A bytes message which is encoded from pydantic basemodel