toMap method

Map<String, dynamic> toMap()

Implementation

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