import { AppUtils , NonSerializable } from "../components/appUtils" ; import { IAppModel } from "../components/helper_interfaces" ; import { CONSTANTS } from "../components/statics" ; /**
 * Represents field of the ScriptObject
 * (used in the Configuration, not to be exported with export.json file)
 *
 */ export class ScriptObjectField implements IAppModel { constructor ( init ) { if ( init ) { this . initialize ( init ) ; } } name : string ; @ NonSerializable ( ) errorMessage : string ; get cleanName ( ) { return this . name . split ( CONSTANTS . REFERENCE_FIELD_OBJECT_SEPARATOR ) [ 0 ] ; } @ NonSerializable ( ) label : string ; initialize ( init ) { if ( init ) { AppUtils . objectAssignSafe ( this , init ) ; } } isValid ( ) { return true ; } }