module Servo::Model::SnowflakeConverter

Overview

JSON converter for serializing and deserializing a String snowflake representation to a UInt64.

Defined in:

model/converters/snowflake_converter.cr

Class Method Summary

Class Method Detail

def self.from_json(parser : JSON::PullParser) #

Deserializes a snowflake string to a Servo::Model::Snowflake.


[View source]
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.


[View source]