ServiceAccount.fromJson constructor

ServiceAccount.fromJson(
  1. Map json_
)

Implementation

ServiceAccount.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        disabled: json_.containsKey('disabled')
            ? json_['disabled'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        email:
            json_.containsKey('email') ? json_['email'] as core.String : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        oauth2ClientId: json_.containsKey('oauth2ClientId')
            ? json_['oauth2ClientId'] as core.String
            : null,
        projectId: json_.containsKey('projectId')
            ? json_['projectId'] as core.String
            : null,
        uniqueId: json_.containsKey('uniqueId')
            ? json_['uniqueId'] as core.String
            : null,
      );