toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'total_count': totalCount,
    'photos': photos,
  }..removeWhere((_, v) => v == null);
}