Map<String, dynamic> toMap() => { 'totalcount': totalcount, 'data': data?.map((e) => e.toMap()).toList(), };