Player.fromJson constructor

Player.fromJson(
  1. Map json_
)

Implementation

Player.fromJson(core.Map json_)
    : this(
        avatarImageUrl: json_.containsKey('avatarImageUrl')
            ? json_['avatarImageUrl'] as core.String
            : null,
        bannerUrlLandscape: json_.containsKey('bannerUrlLandscape')
            ? json_['bannerUrlLandscape'] as core.String
            : null,
        bannerUrlPortrait: json_.containsKey('bannerUrlPortrait')
            ? json_['bannerUrlPortrait'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        experienceInfo: json_.containsKey('experienceInfo')
            ? PlayerExperienceInfo.fromJson(json_['experienceInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        friendStatus: json_.containsKey('friendStatus')
            ? json_['friendStatus'] as core.String
            : null,
        gamePlayerId: json_.containsKey('gamePlayerId')
            ? json_['gamePlayerId'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name')
            ? PlayerName.fromJson(
                json_['name'] as core.Map<core.String, core.dynamic>)
            : null,
        originalPlayerId: json_.containsKey('originalPlayerId')
            ? json_['originalPlayerId'] as core.String
            : null,
        playerId: json_.containsKey('playerId')
            ? json_['playerId'] as core.String
            : null,
        profileSettings: json_.containsKey('profileSettings')
            ? ProfileSettings.fromJson(json_['profileSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );