mirror of https://github.com/Hax-io/jstruct
parent
498251d255
commit
d8b59673c3
|
@ -147,6 +147,12 @@ public RecordType fromJSON(RecordType)(JSONValue jsonIn)
|
|||
{
|
||||
mixin("record."~structNames[cnt])~= cast(ulong)jsonVal.uinteger();
|
||||
}
|
||||
else static if(__traits(isSame, ForeachType!(structTypes[cnt]), bool))
|
||||
{
|
||||
mixin("record."~structNames[cnt])~= jsonVal.boolean();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue