1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const forms_1 = require("@angular/forms");
|
4 | var 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 |
|
\ | No newline at end of file |