You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: create.rs
    path of file: ./repos/prisma-engines/query-engine/schema/src/build/input_types/fields/data_input_mapper
    
    the code of the file until where you have to start completion: use super::*;
use constants::*;
use query_structure::CompositeFieldRef;

pub(crate) struct CreateDataInputFieldMapper {
    unchecked: bool,
}

impl CreateDataInputFieldMapper {
    pub fn new_checked() -> Self {
        Self { unchecked: false }
    }

 
    
    fn map_scalar<'a>(&self, ctx: &'a QuerySchema, sf: ScalarFieldRef) -> InputField<'a> {
        let typ = map_scalar_input_type_for_field(ctx, &sf);
        let supports_advanced_json = ctx.has_capability(ConnectorCapability::AdvancedJsonNullability);

        match &sf.type_identifier() {
            TypeIdentifier::Json if supports_advanced_json => {
                let enum_type = InputType::enum_type(json_null_input_enum(!sf.is_required()));

                input_field(sf.name().to_owned(), vec![enum_type, typ], sf.default_value())
                    .optional_if(!sf.is_required() || sf.default_value().is_some() || sf.is_updated_at())
            }

            _ => input_field(sf.name().to_owned(), vec![typ], sf.default_value())
                .optional_if(!sf.is_required() || sf.default_value().is_some() || sf.is_updated_at())
                .nullable_if(!sf.is_required()),
        }
    }