fromJSON method
Implementation
@override
void fromJSON(dynamic value) {
if (value is List) {
final ModelType typeMapping = DataModel.getType(genericType);
this.value = value.map((element) {
final T instance = typeMapping.constructor() as T;
instance.fromJSON(element);
return instance;
}).toList();
}
}