Altcha.V1.Payload (Altcha v2.4.0)

Copy Markdown View Source

Represents the payload of a V1 challenge.

Summary

Functions

Converts JSON to a Payload struct. Unknown keys are ignored. Raises ArgumentError if the JSON is not an object.

Converts a Payload struct to JSON.

Converts a Payload struct to a JSON-encodable map in the wire format.

Functions

from_json(json)

Converts JSON to a Payload struct. Unknown keys are ignored. Raises ArgumentError if the JSON is not an object.

to_json(payload)

Converts a Payload struct to JSON.

to_map(payload)

Converts a Payload struct to a JSON-encodable map in the wire format.