GoogleCloudIdentitytoolkitV1GetAccountInfoRequest.fromJson constructor

GoogleCloudIdentitytoolkitV1GetAccountInfoRequest.fromJson(
  1. Map _json
)

Implementation

GoogleCloudIdentitytoolkitV1GetAccountInfoRequest.fromJson(core.Map _json)
    : this(
        delegatedProjectNumber: _json.containsKey('delegatedProjectNumber')
            ? _json['delegatedProjectNumber'] as core.String
            : null,
        email: _json.containsKey('email')
            ? (_json['email'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        federatedUserId: _json.containsKey('federatedUserId')
            ? (_json['federatedUserId'] as core.List)
                .map((value) =>
                    GoogleCloudIdentitytoolkitV1FederatedUserIdentifier
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        idToken: _json.containsKey('idToken')
            ? _json['idToken'] as core.String
            : null,
        initialEmail: _json.containsKey('initialEmail')
            ? (_json['initialEmail'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        localId: _json.containsKey('localId')
            ? (_json['localId'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        phoneNumber: _json.containsKey('phoneNumber')
            ? (_json['phoneNumber'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        targetProjectId: _json.containsKey('targetProjectId')
            ? _json['targetProjectId'] as core.String
            : null,
        tenantId: _json.containsKey('tenantId')
            ? _json['tenantId'] as core.String
            : null,
      );