module Ecoportal module API class V2 class Page class Component class ChecklistItem < Common::Content::DoubleModel class << self def new_doc { "id" => new_uuid, "weight" => 9999 } end end passkey :id passforced :patch_ver, default: 1 passthrough :label passthrough :weight passboolean :checked def to_s checked ? label : nil end end end end end end end