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,
        scope: _json.containsKey('scope')
            ? (_json['scope'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );