Map<String, dynamic> toMap() { var map = { 'since': since, 'before': before, 'limit': limit, }; map.removeWhere((key, value) => value == null); return map; }