Application.fromJson constructor
Application.fromJson(
- Map json_
Implementation
Application.fromJson(core.Map json_)
: this(
achievementCount: json_.containsKey('achievement_count')
? json_['achievement_count'] as core.int
: null,
assets: json_.containsKey('assets')
? (json_['assets'] as core.List)
.map((value) => ImageAsset.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
author: json_.containsKey('author')
? json_['author'] as core.String
: null,
category: json_.containsKey('category')
? ApplicationCategory.fromJson(
json_['category'] as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
enabledFeatures: json_.containsKey('enabledFeatures')
? (json_['enabledFeatures'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
instances: json_.containsKey('instances')
? (json_['instances'] as core.List)
.map((value) => Instance.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
lastUpdatedTimestamp: json_.containsKey('lastUpdatedTimestamp')
? json_['lastUpdatedTimestamp'] as core.String
: null,
leaderboardCount: json_.containsKey('leaderboard_count')
? json_['leaderboard_count'] as core.int
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
themeColor: json_.containsKey('themeColor')
? json_['themeColor'] as core.String
: null,
);