import { P_COLUMN_REFERENCE_ON , ColumnReferenceOnInterface } from '../../../../typings' ; import { ColumnReferenceOnModelInterface } from './typings' ; /**
 * Column reference's 'on' triggers of column actions.
 */ export class ColumnReferenceOn implements ColumnReferenceOnModelInterface { trigger ! : string ; action ! : string ; param json static fromObject ( json ) { const onInstance = new ColumnReferenceOn ( ) ; onInstance . action = json . action . toLowerCase ( ) ; onInstance . trigger = json . trigger . toLowerCase ( ) ; return onInstance ; } /**
     * JSON casting of this object calls this method.
     */ toJSON ( ) { return { trigger : this . trigger , action : this . action , } ; } /**
     * Create a deep clone of this model.
     */ clone ( ) { return ColumnReferenceOn . fromObject ( this ) ; } }