convertToInfo<T> static method

TypeFileList<T> convertToInfo<T>(
  1. Map json,
  2. T creator(
    1. Map json
    )
)

Implementation

static TypeFileList<T> convertToInfo<T>(
    Map json, T Function(Map json) creator) {
  final list = json['info'] as List;
  final info = list.map((e) => creator(e as Map<String, dynamic>)).toList();
  return TypeFileList<T>(info);
}