@override Map<String, Object?> toMap() { return { 'value': value, if (total != null) 'total': total, if (hasMore != null) 'hasMore': hasMore, }; }