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