@mdcc/at-json
Version:
A declarative mapper to and from JSON.
17 lines (16 loc) • 506 B
TypeScript
export interface IJsonClassOptions {
/**
* If `true` (the default), undecorated properties are ignored by the serialization/deserialization process.
* If `false`, they are treated as if they were decorated with the {@link JsonProperty} decorator.
*/
ignoreUndecoratedProperties?: boolean;
}
/**
* Decorator for mapped classes.
*
* @export
* @template T
* @returns
* @param ignoreMissingFields
*/
export declare function JsonClass(options?: IJsonClassOptions): ClassDecorator;