fromJSON method
Implementation
@override
void fromJSON(json) {
if (json != null) {
final T model = DataModel.getType(genericType).constructor() as T;
model.fromJSON(json);
_value = model;
}
}
@override
void fromJSON(json) {
if (json != null) {
final T model = DataModel.getType(genericType).constructor() as T;
model.fromJSON(json);
_value = model;
}
}