CreateAuthUriResponse.fromJson constructor

CreateAuthUriResponse.fromJson(
  1. Map _json
)

Implementation

CreateAuthUriResponse.fromJson(core.Map _json)
    : this(
        allProviders: _json.containsKey('allProviders')
            ? (_json['allProviders'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        authUri: _json.containsKey('authUri')
            ? _json['authUri'] as core.String
            : null,
        captchaRequired: _json.containsKey('captchaRequired')
            ? _json['captchaRequired'] as core.bool
            : null,
        forExistingProvider: _json.containsKey('forExistingProvider')
            ? _json['forExistingProvider'] as core.bool
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        providerId: _json.containsKey('providerId')
            ? _json['providerId'] as core.String
            : null,
        registered: _json.containsKey('registered')
            ? _json['registered'] as core.bool
            : null,
        sessionId: _json.containsKey('sessionId')
            ? _json['sessionId'] as core.String
            : null,
        signinMethods: _json.containsKey('signinMethods')
            ? (_json['signinMethods'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );