def METHOD_NAME(self, validated_data: dict, context: dict, **kwargs) -> models.Order:
    test_mode = getattr(context, "test_mode", False)
    order_data = {
        **{
            key: value
            for key, value in validated_data.items()
            if key in models.Order.DIRECT_PROPS and value is not None
        },
        "test_mode": test_mode,
        "shipping_to": save_one_to_one_data(
            "shipping_to",
            serializers.AddressSerializer,
            payload=validated_data,
            context=context,
        ),
        "shipping_from": save_one_to_one_data(
            "shipping_from",
            serializers.AddressSerializer,
            payload=validated_data,
            context=context,
        ),
        "billing_address": save_one_to_one_data(
            "billing_address",
            serializers.AddressSerializer,
            payload=validated_data,
            context=context,
        ),
    }
    order = models.Order.objects.METHOD_NAME(**order_data)
    save_many_to_many_data(
        "line_items",
        LineItemModelSerializer,
        order,
        payload=validated_data,
        context=context,
    )
    return order