blob: 1a928389dfb1f1492effb85bdc0bad14b34fdd4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  | 
import { Deserializable } from "../client/util/SerializationHelper";
import { serializable, primitive } from "serializr";
import { ObjectField, Copy } from "./ObjectField";
@Deserializable("icon")
export class IconField extends ObjectField {
    @serializable(primitive())
    readonly icon: string;
    constructor(icon: string) {
        super();
        this.icon = icon;
    }
    [Copy]() {
        return new IconField(this.icon);
    }
}
 
  |