Method: Castkit::DataObject#to_json
- Defined in:
- lib/castkit/data_object.rb
#to_json(options = nil) ⇒ String
Serializes the DTO to a JSON string.
101 102 103 |
# File 'lib/castkit/data_object.rb', line 101 def to_json( = nil) JSON.generate(serializer.call(self), ) end |