parseChapterList function

List<EpubChapter> parseChapterList(
  1. dynamic result
)

Implementation

List<EpubChapter> parseChapterList(dynamic result) {
    if (result == null) return [];

    final List<dynamic> resultList = (result is List) ? result : [result];

    return resultList.map((item) {
      return EpubChapter.fromJson(_deepConvertMap(item));
    }).toList();
  }