module Ollama::DTO
def as_json(*)
def as_json(*) self.class.attributes.each_with_object({}) { |a, h| h[a] = send(a) }. reject { _2.nil? || _2.ask_and_send(:size) == 0 } end
def as_json(*) self.class.attributes.each_with_object({}) { |a, h| h[a] = send(a) }. reject { _2.nil? || _2.ask_and_send(:size) == 0 } end