mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix fmt
This commit is contained in:
@@ -309,9 +309,10 @@ export default class JSONFunctions {
|
||||
(val as JSONObject)['_type'] &&
|
||||
(val as JSONObject)['value'] &&
|
||||
SerializableObjectDictionary[(val as JSONObject)['_type'] as string]
|
||||
|
||||
) {
|
||||
return SerializableObjectDictionary[(val as JSONObject)['_type'] as string].fromJSON(val)
|
||||
return SerializableObjectDictionary[
|
||||
(val as JSONObject)['_type'] as string
|
||||
].fromJSON(val);
|
||||
} else if (val instanceof Date) {
|
||||
return val;
|
||||
} else if (typeof val === Typeof.Object) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import NotImplementedException from './Exception/NotImplementedException';
|
||||
import { JSONObject } from './JSON';
|
||||
|
||||
@@ -16,4 +15,4 @@ export default class SerializableObject {
|
||||
public fromJSON(json: JSONObject): SerializableObject {
|
||||
return SerializableObject.fromJSON(json);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,4 +56,4 @@ const SerializableObjectDictionary: Dictionary<any> = {
|
||||
[ObjectType.IsNull]: IsNull,
|
||||
};
|
||||
|
||||
export default SerializableObjectDictionary;
|
||||
export default SerializableObjectDictionary;
|
||||
|
||||
Reference in New Issue
Block a user