build/lib/ipsoObject.js
function getDeserializer(target, property /*| keyof T*/) {
    // get the class constructor
    const constr = target.constructor;
    // retrieve the current metadata
    const metadata = Reflect.getMetadata(METADATA_deserializeWith, constr) || {};
    if (metadata.hasOwnProperty(property)) {
        return metadata[property];
    }
    // If there's no custom deserializer, try to find a default one
    const type = getPropertyType(target, property);
    if (type && type.name in defaultDeserializers) {
        return defaultDeserializers[type.name];
    }
}
function getDeserializer(target, property /*| keyof T*/) {
    // get the class constructor
    const constr = target.constructor;
    // retrieve the current metadata
    const metadata = Reflect.getMetadata(METADATA_deserializeWith, constr) || {};
    if (metadata.hasOwnProperty(property)) {
        return metadata[property];
    }
    // If there's no custom deserializer, try to find a default one
    const type = getPropertyType(target, property);
    if (type && type.name in defaultDeserializers) {
        return defaultDeserializers[type.name];
    }
}
function getDeserializer ( target , property /*| keyof T*/ ) { // get the class constructor const constr = target . constructor ; // retrieve the current metadata const metadata = Reflect . getMetadata ( METADATA_deserializeWith , constr ) || { } ; if ( metadata . hasOwnProperty ( property ) ) { return metadata [ property ] ; } // If there's no custom deserializer, try to find a default one const type = getPropertyType ( target , property ) ; if ( type && type . name in defaultDeserializers ) { return defaultDeserializers [ type . name ] ; } }
Retrieves the deserializer for a given property
Retrieves the deserializer for a given property