toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

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