All Downloads are FREE. Search and download functionalities are using the official Maven repository.

typescript-redux-query.modelAllOf.mustache Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
{{#hasImports}}
import {
    {{#imports}}
    {{{.}}},
    {{{.}}}FromJSON,
    {{{.}}}ToJSON,
    {{/imports}}
} from './';

{{/hasImports}}
/**
 * @type {{classname}}{{#description}}
 * {{{.}}}{{/description}}
 * @export
 */
export interface {{classname}} extends {{#allOf}}{{{.}}}{{^-last}}, {{/-last}}{{/allOf}} {
}

export function {{classname}}FromJSON(json: any): {{classname}} {
    return {
        {{#allOf}}
        ...{{.}}FromJSON(json),
        {{/allOf}}
    };
}

export function {{classname}}ToJSON(value?: {{classname}}): any {
    if (value === undefined) {
        return undefined;
    }
    return {
        {{#allOf}}
        ...{{.}}ToJSON(value),
        {{/allOf}}
    };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy