ServiceAccount.fromString constructor
ServiceAccount.fromString(
- String json
Creates a service account using a passed Json string. This Json string must contain valid Json, otherwise no service account can be created.
A valid Json string could look like this
Important Make sure you prefix your string with an 'r' to convert it to a raw string and escape the /n typical in Google Account Json files.
final json = r'''{"type" : "service_account", ...}''';
Implementation
factory ServiceAccount.fromString(String json) {
return ServiceAccount._(json);
}