libs/json_lib.py
def jsonify_database_models(model: DefaultMeta, first=False):
    """Convert a database model structure to json

    Args:
        model (DefaultMeta): database mode structure
        first (bool, optional): [description]. Defaults to False.

    Returns:
        [type]: [description]
    """
    schema          = model.get_schema()

    structures      = schema() #schema(many=True) if not first else 
    results_json    = structures.dump(model) # ? wtf why does it works 
    return results_json
Convert a database model structure to json

    Args:
        model (DefaultMeta): database mode structure
        first (bool, optional): [description]. Defaults to False.

    Returns:
        [type]: [description]
    
Convert a database model structure to json
Convert a database model structure to json
def jsonify_database_models(model: DefaultMeta, first=False):
    schema          = model.get_schema()
    structures      = schema() 
    results_json    = structures.dump(model) 
    return results_json
def jsonify_database_models ( model : DefaultMeta , first = False ) : schema = model . get_schema ( ) structures = schema ( ) results_json = structures . dump ( model ) return results_json
Convert a database model structure to json
Convert a database model structure to json
"""Convert a database model structure to json

    Args:
        model (DefaultMeta): database mode structure
        first (bool, optional): [description]. Defaults to False.

    Returns:
        [type]: [description]
    """ #schema(many=True) if not first else  # ? wtf why does it works 
None
[type]
model
DefaultMeta
database mode structure
database mode structure
first
[description]. Defaults to False.
[ description ] . Defaults to False .
False