makeFromGcpCredentials static method

Future<SkiaPerfDestination> makeFromGcpCredentials(
  1. Map<String, dynamic> credentialsJson, {
  2. bool isTesting = false,
})

Create from a full credentials json (of a service account).

Implementation

static Future<SkiaPerfDestination> makeFromGcpCredentials(
    Map<String, dynamic> credentialsJson,
    {bool isTesting = false}) async {
  final AutoRefreshingAuthClient client = await clientViaServiceAccount(
      ServiceAccountCredentials.fromJson(credentialsJson), Storage.SCOPES);
  return make(
    client,
    credentialsJson[kProjectId] as String,
    isTesting: isTesting,
  );
}