Skip to content
Snippets Groups Projects
Commit b686216e authored by michael.minelli's avatar michael.minelli
Browse files

Model => Convert %Info% field from JSON

parent 1a685a6f
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,8 @@ abstract class Model extends Object {
Object.getOwnPropertyNames(obj).forEach(property => {
if ( result.hasOwnProperty(property) ) {
(result as any)[property] = obj[property];
(result as any)[property] = property.indexOf('Info') === -1 ? obj[property] : JSON.parse(obj[property]);
}
});
return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment