fromColumnValue(propertyDef, value) {
    if (value === null || !propertyDef) {
      return value;
    }
    switch (propertyDef.type.name) {
      case 'Number':
        return Number(value);
      case 'String':
        return String(value);
      case 'Date':
        return new Date(value);
      case 'Boolean':
        return Boolean(value);
      case 'GeoPoint':
      case 'Point':
      case 'List':
      case 'Array':
      case 'Object':
      case 'JSON':
        return JSON.parse(value);
      default:
        return value;
    }
  }
/**
   * Convert the data from database column to model property
   * @param {object} propertyDef Model property definition
   * @param {*} value Column value
   * @returns {*} Model property value
   */
Convert the data from database column to model property
@param {object} propertyDef Model property definition
@param {*} value Column value
@returns {*} Model property value
Convert the data from database column to model property @param { object } propertyDef Model property definition @param { * } value Column value @returns { * } Model property value
fromColumnValue(propertyDef, value) {
    if (value === null || !propertyDef) {
      return value;
    }
    switch (propertyDef.type.name) {
      case 'Number':
        return Number(value);
      case 'String':
        return String(value);
      case 'Date':
        return new Date(value);
      case 'Boolean':
        return Boolean(value);
      case 'GeoPoint':
      case 'Point':
      case 'List':
      case 'Array':
      case 'Object':
      case 'JSON':
        return JSON.parse(value);
      default:
        return value;
    }
  }
fromColumnValue ( propertyDef , value ) { if ( value === null || ! propertyDef ) { return value ; } switch ( propertyDef . type . name ) { case 'Number' : return Number ( value ) ; case 'String' : return String ( value ) ; case 'Date' : return new Date ( value ) ; case 'Boolean' : return Boolean ( value ) ; case 'GeoPoint' : case 'Point' : case 'List' : case 'Array' : case 'Object' : case 'JSON' : return JSON . parse ( value ) ; default : return value ; } }
Convert the data from database column to model property
 @param {object} propertyDef Model property definition
 @param {*} value Column value
 @returns {*} Model property value
Convert the data from database column to model property @param { object } propertyDef Model property definition @param { * } value Column value @returns { * } Model property value