View Source ExAzureSpeech.Common.Protocols.Json protocol (ex_azure_speech v0.1.1)

Protocol for deserialize JSON responses into valid message structs.

Summary

Types

t()

All the types that implement this protocol.

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, module()} | {:error, ExAzureSpeech.Common.Errors.InvalidResponse.t()}

Serializes the informed JSON string and coerces it into the informed struct.