UNPKG

1.04 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const forms_1 = require("@angular/forms");
4var EditConfigApiModel;
5(function (EditConfigApiModel) {
6 class Request {
7 constructor(initValue = {}) {
8 Object.keys(initValue).forEach(key => this[key] = initValue[key]);
9 }
10 getRequestBody() {
11 debugger;
12 return {
13 Name: this.Name,
14 Config: this.Config
15 };
16 }
17 static get formGroup() {
18 return new forms_1.FormGroup({
19 Name: new forms_1.FormControl('', [forms_1.Validators.required]),
20 Config: new forms_1.FormGroup({}),
21 });
22 }
23 }
24 EditConfigApiModel.Request = Request;
25 class Response {
26 constructor() {
27 }
28 }
29 EditConfigApiModel.Response = Response;
30})(EditConfigApiModel = exports.EditConfigApiModel || (exports.EditConfigApiModel = {}));
31//# sourceMappingURL=edit-config-api.model.js.map
\No newline at end of file