definma-ui/src/app/models/template.model.ts

15 lines
354 B
TypeScript
Raw Normal View History

import {Deserializable} from './deserializable.model';
import {IdModel} from './id.model';
export class TemplateModel implements Deserializable{
_id: IdModel = null;
name = '';
version = 1;
parameters: {name: string, range: {[prop: string]: any}}[] = [];
deserialize(input: any): this {
Object.assign(this, input);
return this;
}
}