Userinfo.fromJson constructor

Userinfo.fromJson(
  1. Map json_
)

Implementation

Userinfo.fromJson(core.Map json_)
    : this(
        email:
            json_.containsKey('email') ? json_['email'] as core.String : null,
        familyName: json_.containsKey('family_name')
            ? json_['family_name'] as core.String
            : null,
        gender: json_.containsKey('gender')
            ? json_['gender'] as core.String
            : null,
        givenName: json_.containsKey('given_name')
            ? json_['given_name'] as core.String
            : null,
        hd: json_.containsKey('hd') ? json_['hd'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        link: json_.containsKey('link') ? json_['link'] as core.String : null,
        locale: json_.containsKey('locale')
            ? json_['locale'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        picture: json_.containsKey('picture')
            ? json_['picture'] as core.String
            : null,
        verifiedEmail: json_.containsKey('verified_email')
            ? json_['verified_email'] as core.bool
            : null,
      );