aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/HtmlField.ts
blob: 808a3499b72495c8c62d2f14e720ac198d871034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Deserializable } from "../client/util/SerializationHelper";
import { serializable, primitive } from "serializr";
import { ObjectField } from "./ObjectField";

@Deserializable("html")
export class HtmlField extends ObjectField {
    @serializable(primitive())
    readonly html: string;

    constructor(html: string) {
        super();
        this.html = html;
    }
}