UNPKG

formgen-react

Version:

Formula generator with JSON for react. UI Fabric controls are used for rendering

24 lines (21 loc) 694 B
import { JsonObject, JsonProperty } from "json2typescript"; import { Translate, TransConverter } from "./jsonConverters/TransConverter"; /** * Property for an Translation of an Property at an object. The key has to be delimited with . * Eg: Object.SubObject.propertyName */ @JsonObject export class Property { @JsonProperty("key", String) Key:string = ""; @JsonProperty("object_trans", TransConverter, true) ObjectTranslates: Translate[] = []; } /** * Collection of Properties to translate in an object. */ @JsonObject export class ObjectTranslate { @JsonProperty("properties", [Property], true) Properties:Property[] = []; }