def METHOD_NAME(
    self,
    kind_name: str,
    schema: dict,
    allowed: Optional[Set[str]] = None,
    prefix: Optional[str] = None,
    add_mapping: Optional[str] = None,
) -> str:
    METHOD_NAME = ""
    mapping = f"  mapping: ClassVar[Dict[str, Bender]] = {add_mapping or ''} {{\n"
    for prop, prop_spec in schema.get("properties", {}).items():
        if allowed is None or prop in allowed:
            p, m = self.property(kind_name, prop, prop_spec, prefix)
            METHOD_NAME += "  " + p + "\n"
            mapping += "    " + m + ",\n"
    return mapping + "  }\n" + METHOD_NAME + "\n"