GoogleCloudIdentitytoolkitAdminV2Tenant.fromJson constructor

GoogleCloudIdentitytoolkitAdminV2Tenant.fromJson(
  1. Map _json
)

Implementation

GoogleCloudIdentitytoolkitAdminV2Tenant.fromJson(core.Map _json)
    : this(
        allowPasswordSignup: _json.containsKey('allowPasswordSignup')
            ? _json['allowPasswordSignup'] as core.bool
            : null,
        disableAuth: _json.containsKey('disableAuth')
            ? _json['disableAuth'] as core.bool
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        enableAnonymousUser: _json.containsKey('enableAnonymousUser')
            ? _json['enableAnonymousUser'] as core.bool
            : null,
        enableEmailLinkSignin: _json.containsKey('enableEmailLinkSignin')
            ? _json['enableEmailLinkSignin'] as core.bool
            : null,
        hashConfig: _json.containsKey('hashConfig')
            ? GoogleCloudIdentitytoolkitAdminV2HashConfig.fromJson(
                _json['hashConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        inheritance: _json.containsKey('inheritance')
            ? GoogleCloudIdentitytoolkitAdminV2Inheritance.fromJson(
                _json['inheritance'] as core.Map<core.String, core.dynamic>)
            : null,
        mfaConfig: _json.containsKey('mfaConfig')
            ? GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig.fromJson(
                _json['mfaConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        smsRegionConfig: _json.containsKey('smsRegionConfig')
            ? GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig.fromJson(
                _json['smsRegionConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        testPhoneNumbers: _json.containsKey('testPhoneNumbers')
            ? (_json['testPhoneNumbers']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
      );