View Source ExAzureSpeech.Common.Protocols.Json protocol (ex_azure_speech v0.2.2)
Protocol for deserialize JSON responses into valid message structs.
Summary
Functions
Serializes the informed JSON string and coerces it into the informed struct.
Types
@type t() :: term()
All the types that implement this protocol.
Functions
@spec from_json(String.t(), module()) :: {:ok, struct()} | {:error, ExAzureSpeech.Common.Errors.InvalidResponse.t()}
Serializes the informed JSON string and coerces it into the informed struct.