Future<int> count(TFilter filter) async { return dio .post( '/count', data: filter.toJSON(), ) .then( (response) => (response.data as num).toInt(), ); }