mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
19 lines
482 B
TypeScript
19 lines
482 B
TypeScript
import NotImplementedException from "./Exception/NotImplementedException";
|
|
import { JSONObject } from "./JSON";
|
|
|
|
export default class SerializableObject {
|
|
public constructor() {}
|
|
|
|
public toJSON(): JSONObject {
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public static fromJSON(_json: JSONObject): SerializableObject {
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public fromJSON(json: JSONObject): SerializableObject {
|
|
return SerializableObject.fromJSON(json);
|
|
}
|
|
}
|