class

JsonRpc::Entity

Inherits JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Common serializable JSON RPC entity

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clean?

Returns true if there are no unmapped properties after parsing #from_json

Source
dirty?

Returns true if there are unmapped properties after parsing #from_json

Source

Macros

check_if_clean_with(*props)

Call this when subclassing an entity with properties that are also JSON entities to define a #clean? method that includes those properties in the check.

Source