def METHOD_NAME(
    cls,
    existing: dict[str, Any],
    new: dict[str, Any],
    detach: list[Any],
    attach: list[Any],
) -> "Example":
    return cls(
        existing_networks_with_aliases=NetworksWithAliases.parse_obj(existing),
        new_networks_with_aliases=NetworksWithAliases.parse_obj(new),
        expected_calls=MockedCalls(detach=detach, attach=attach),
    )