Coerce 'number' values in createFrom method
sampaioletti opened this issue · 0 comments
sampaioletti commented
Add a + in front of the assignment to coerce a string to a number, unless struct tag "json:",string"" present to avoid issues when sending to the golang json parser
static createFrom(source:any){
...
result.age=+source["age"]
^
}