module ShortVersionConverter
Overview
Converter to be used with JSON::Serializable
to serialize a ShortVersion
.
Defined in:
short_version/converter.crClass Method Summary
-
.from_json(value : JSON::PullParser) : ShortVersion
Reads a serialized ShortVersion by value from pull.
-
.to_json(value : ShortVersion, json : JSON::Builder) : Nil
Serializes a
ShortVersion
value as a String from value.
Class Method Detail
def self.from_json(value : JSON::PullParser) : ShortVersion
#
Reads a serialized ShortVersion by value from pull.
See .to_json
for reference.
Raises JSON::ParseException
if the deserialization fails.
def self.to_json(value : ShortVersion, json : JSON::Builder) : Nil
#
Serializes a ShortVersion
value as a String from value.