module Servo::Model::SnowflakeConverter
Overview
JSON converter for serializing and deserializing a String snowflake representation to a UInt64.
Defined in:
model/converters/snowflake_converter.crClass Method Summary
-
.from_json(parser : JSON::PullParser)
Deserializes a snowflake string to a
Servo::Model::Snowflake
. -
.to_json(snowflake : Servo::Model::Snowflake | Nil, builder : JSON::Builder)
Serializes a
Servo::Model::Snowflake
into it's string representation.
Class Method Detail
def self.from_json(parser : JSON::PullParser)
#
Deserializes a snowflake string to a Servo::Model::Snowflake
.
def self.to_json(snowflake : Servo::Model::Snowflake | Nil, builder : JSON::Builder)
#
Serializes a Servo::Model::Snowflake
into it's string representation.
This string is null if the value was nil.