"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Todo = void 0;
const tiny_types_1 = require("tiny-types");
class Todo extends tiny_types_1.TinyType {
    constructor(id, title, completed = false) {
        super();
        this.id = id;
        this.title = title;
        this.completed = completed;
    }
    static fromJSON(o) {
        return new Todo(o['id'], o['title'], o['completed']);
    }
    clone() {
        return new Todo(this.id, this.title, this.completed);
    }
}
exports.Todo = Todo;
//# sourceMappingURL=Todo.js.map