GoogleCloudIdentitytoolkitV1UserInfo.fromJson constructor

GoogleCloudIdentitytoolkitV1UserInfo.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIdentitytoolkitV1UserInfo.fromJson(core.Map json_)
    : this(
        createdAt: json_.containsKey('createdAt')
            ? json_['createdAt'] as core.String
            : null,
        customAttributes: json_.containsKey('customAttributes')
            ? json_['customAttributes'] as core.String
            : null,
        customAuth: json_.containsKey('customAuth')
            ? json_['customAuth'] as core.bool
            : null,
        dateOfBirth: json_.containsKey('dateOfBirth')
            ? json_['dateOfBirth'] 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,
        emailLinkSignin: json_.containsKey('emailLinkSignin')
            ? json_['emailLinkSignin'] as core.bool
            : null,
        emailVerified: json_.containsKey('emailVerified')
            ? json_['emailVerified'] as core.bool
            : null,
        initialEmail: json_.containsKey('initialEmail')
            ? json_['initialEmail'] as core.String
            : null,
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
        lastLoginAt: json_.containsKey('lastLoginAt')
            ? json_['lastLoginAt'] as core.String
            : null,
        lastRefreshAt: json_.containsKey('lastRefreshAt')
            ? json_['lastRefreshAt'] as core.String
            : null,
        localId: json_.containsKey('localId')
            ? json_['localId'] as core.String
            : null,
        mfaInfo: json_.containsKey('mfaInfo')
            ? (json_['mfaInfo'] as core.List)
                .map((value) =>
                    GoogleCloudIdentitytoolkitV1MfaEnrollment.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        passwordHash: json_.containsKey('passwordHash')
            ? json_['passwordHash'] as core.String
            : null,
        passwordUpdatedAt: json_.containsKey('passwordUpdatedAt')
            ? (json_['passwordUpdatedAt'] as core.num).toDouble()
            : null,
        phoneNumber: json_.containsKey('phoneNumber')
            ? json_['phoneNumber'] as core.String
            : null,
        photoUrl: json_.containsKey('photoUrl')
            ? json_['photoUrl'] as core.String
            : null,
        providerUserInfo: json_.containsKey('providerUserInfo')
            ? (json_['providerUserInfo'] as core.List)
                .map((value) =>
                    GoogleCloudIdentitytoolkitV1ProviderUserInfo.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rawPassword: json_.containsKey('rawPassword')
            ? json_['rawPassword'] as core.String
            : null,
        salt: json_.containsKey('salt') ? json_['salt'] as core.String : null,
        screenName: json_.containsKey('screenName')
            ? json_['screenName'] as core.String
            : null,
        tenantId: json_.containsKey('tenantId')
            ? json_['tenantId'] as core.String
            : null,
        timeZone: json_.containsKey('timeZone')
            ? json_['timeZone'] as core.String
            : null,
        validSince: json_.containsKey('validSince')
            ? json_['validSince'] as core.String
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.int
            : null,
      );