toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "object": object,
  "data": List<dynamic>.from(data.map((x) => x.toJson())),
  "first_id": firstId,
  "last_id": lastId,
  "has_more": hasMore,
};