fillModels<T> method

dynamic fillModels<T>(
  1. T onModels(
    1. Map json
    )
)

Implementation

fillModels<T>(T Function(Map json) onModels) {
  try {
    if (list.length > 0) {
      _models = list.map((v) => onModels(v)).toList();
    }
  } catch (e) {
    _printCatchLog(e);
  }
}