fromJSON method
Implementation
@override
void fromJSON(dynamic value) {
final ModelType typeMapping = DataModel.getType(genericType);
final T instance = typeMapping.constructor() as T;
if (value != null) {
instance.fromJSON(value);
}
this.value = instance;
}