Future<T> fetch({Map<String, String>? params}) async => fromJson(_asMap(await getJson(endpoint, query: params)));