File size: 449 Bytes
b82d373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { QuickReplySet } from './QuickReplySet.js';

export class QuickReplyContextLink {
    static from(props) {
        props.set = QuickReplySet.get(props.set);
        const x = Object.assign(new this(), props);
        return x;
    }




    /**@type {QuickReplySet}*/ set;
    /**@type {Boolean}*/ isChained = false;

    toJSON() {
        return {
            set: this.set?.name,
            isChained: this.isChained,
        };
    }
}