Module: A2A::Extensions::JSONDeserialization::ClassMethods
- Defined in:
- lib/a2a/extensions/json_deserialization.rb
Overview
Class methods added to the class that includes JsonDeserialization
Instance Method Summary collapse
-
#from_json(json) ⇒ ProtocolStruct
Creates a new instance from a JSON string.
Instance Method Details
#from_json(json) ⇒ ProtocolStruct
Creates a new instance from a JSON string
47 48 49 |
# File 'lib/a2a/extensions/json_deserialization.rb', line 47 def from_json(json) new(JSON.parse(json)) end |