setFromJson method
Convert any given json to correspondig types and store it. If fails, it returns false.
Implementation
@override
bool setFromJson(json) {
if (json is Map) {
for (final entry in json.entries) {
this[entry.key] = childCreator()..setFromJson(json[entry.key]);
}
return true;
}
return false;
}