def METHOD_NAME(cls, v, values, field: ModelField):
    # WARNING: In nullable fields, envs equal to null or none are parsed as None !!
    if field.allow_none:
        if isinstance(v, str) and v.lower() in ("null", "none"):
            return None
    return v