I want to make the Checkbox checked by Default in checkout page. I have used below code it is displaying the Checkbox but it is not checked by Default, Can you please suggest where i was wrong.
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['newsletter_subscribe'] = [
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/checkbox',
'options' => [],
'id' => 'delivery-date'
],
'dataScope' => 'shippingAddress.newsletter_subscribe',
'label' => $label,
'provider' => 'checkoutProvider',
'visible' => true,
'checked' => 'checked',
'validation' => [],
'sortOrder' => 250,
'id' => 'newsletter-subscribe'
];