AppsListData.fromJson constructor
AppsListData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AppsListData.fromJson(Map<String, dynamic> json) {
return AppsListData(
appsList: (json['AppsList'] as List)
.whereNotNull()
.map((e) => App.fromJson(e as Map<String, dynamic>))
.toList(),
listName: json['ListName'] as String,
createTime: timeStampFromJson(json['CreateTime']),
lastUpdateTime: timeStampFromJson(json['LastUpdateTime']),
listId: json['ListId'] as String?,
listUpdateToken: json['ListUpdateToken'] as String?,
previousAppsList: (json['PreviousAppsList'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(
k,
(e as List)
.whereNotNull()
.map((e) => App.fromJson(e as Map<String, dynamic>))
.toList())),
);
}