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