Tokeninfo.fromJson constructor

Tokeninfo.fromJson(
  1. Map json_
)

Implementation

Tokeninfo.fromJson(core.Map json_)
    : this(
        audience: json_.containsKey('audience')
            ? json_['audience'] as core.String
            : null,
        email:
            json_.containsKey('email') ? json_['email'] as core.String : null,
        expiresIn: json_.containsKey('expires_in')
            ? json_['expires_in'] as core.int
            : null,
        issuedTo: json_.containsKey('issued_to')
            ? json_['issued_to'] as core.String
            : null,
        scope:
            json_.containsKey('scope') ? json_['scope'] as core.String : null,
        userId: json_.containsKey('user_id')
            ? json_['user_id'] as core.String
            : null,
        verifiedEmail: json_.containsKey('verified_email')
            ? json_['verified_email'] as core.bool
            : null,
      );