IndexList.fromMap constructor

IndexList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory IndexList.fromMap(Map<String, dynamic> map) {
  return IndexList(
    total: (map['total'] is String)
        ? int.tryParse(map['total']) ?? 0
        : map['total'] ?? 0,
    indexes: List<Index>.from(map['indexes'].map((p) => Index.fromMap(p))),
  );
}