Avrora.Schema.Encoder.from_json

You're seeing just the function from_json, go back to Avrora.Schema.Encoder module for more information.
Link to this function

from_json(payload, reference_lookup_fun \\ &Avrora.Schema.Encoder.reference_lookup/1)

View Source

Specs

from_json(String.t(), reference_lookup_fun()) ::
  {:ok, Avrora.Schema.t()} | {:error, term()}

Parse Avro schema JSON and convert to the Schema struct.

Examples

iex> json = ~s({"namespace":"io.confluent","type":"record","name":"Payment","fields":[{"name":"id","type":"string"},{"name":"amount","type":"double"}]})
iex> {:ok, schema} = Avrora.Schema.Encoder.from_json(json)
iex> schema.full_name
"io.confluent.Payment"