Checkbox fields can be created with the following configuration:
'myField' => [ 'type' => 'checkbox', 'label' => 'Checkbox Field', 'help' => 'This is a checkbox field.' 'default' => true,],