Player.fromJson constructor

Player.fromJson(
  1. Map json_
)

Implementation

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