setFromJson method
Convert and set any json to T
It doesn't crash if passed incorrect data type value
If it fails to put value it returns false
Implementation
@override
bool setFromJson(json) {
_loaded = false;
if (json is String) set(json);
if (json is double) set(json.toString());
if (json is int) set(json.toString());
if (json is bool) set(json.toString());
return isLoaded;
}