import '../core/models/build.dart'; import 'api_client.dart'; extension BuildsAPI on ApiClient { Future> listAllBuilds() async { final resp = await getRawClient().get("/builds"); final responseObject = resp.data as List; final List packages = responseObject.map((e) => Build.fromJson(e)).toList(growable: false); return packages; } }