all files / json2typescript/ json-convert-options.ts

100% Statements 14/14
100% Branches 0/0
100% Functions 2/2
100% Lines 11/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18              18× 18× 18× 18× 18×
/**
 * Internal constants.
 */
export class Settings {
    static readonly MAPPING_PROPERTY = "__jsonconvert__mapping__";
    static readonly MAPPER_PROPERTY = "__jsonconvert__mapper__";
};
 
/**
 * Internal mapping options for a property.
 */
export class MappingOptions {
    classPropertyName: string = "";
    jsonPropertyName: string = "";
    expectedJsonType: string = undefined;
    isOptional: boolean = false;
    customConverter: any = null;
}