toListModel method

bool toListModel(
  1. TransformJson serializer,
  2. dynamic l
)

Implementation

bool toListModel(TransformJson serializer, dynamic l) {
  if (l != null && l is List) {
    list = l.map((e) => (serializer(e) as T)).toList();
    return true;
  } else {
    return false;
  }
}