app/api/io/pooled_plate_creation.rb
# frozen_string_literal: true
# Controls API V1 IO for {::PooledPlateCreation}
class Io::PooledPlateCreation < Core::Io::Base
set_model_for_input(::PooledPlateCreation)
set_json_root(:pooled_plate_creation)
# set_eager_loading { |model| model.include_parents.include_child }
define_attribute_and_json_mapping(
'
user <=> user
parents <= parents
child_purpose <=> child_purpose
child => child
'
)
end