User.fromJson constructor

User.fromJson(
  1. Map json_
)

Implementation

User.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        emailAddress: json_.containsKey('emailAddress')
            ? json_['emailAddress'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        me: json_.containsKey('me') ? json_['me'] as core.bool : null,
        permissionId: json_.containsKey('permissionId')
            ? json_['permissionId'] as core.String
            : null,
        photoLink: json_.containsKey('photoLink')
            ? json_['photoLink'] as core.String
            : null,
      );