• Type guard to check if a model has a toJSON method

    Parameters

    • model: any

    Returns model is {
        toJSON: (() => object);
    }