ServiceAccount.fromJson constructor

ServiceAccount.fromJson(
  1. Map json_
)

Implementation

ServiceAccount.fromJson(core.Map json_)
    : this(
        email:
            json_.containsKey('email') ? json_['email'] as core.String : null,
        scopes: json_.containsKey('scopes')
            ? (json_['scopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );