toJson method
Implementation
Map<String, dynamic> toJson() => {
'object': object,
'data': data.map((e) => e.toJson()).toList(),
if (firstId != null) 'first_id': firstId,
if (lastId != null) 'last_id': lastId,
'has_more': hasMore,
};