toJson method
Implementation
Map<String, dynamic> toJson() {
final appsList = this.appsList;
final listName = this.listName;
final createTime = this.createTime;
final lastUpdateTime = this.lastUpdateTime;
final listId = this.listId;
final listUpdateToken = this.listUpdateToken;
final previousAppsList = this.previousAppsList;
return {
'AppsList': appsList,
'ListName': listName,
if (createTime != null) 'CreateTime': unixTimestampToJson(createTime),
if (lastUpdateTime != null)
'LastUpdateTime': unixTimestampToJson(lastUpdateTime),
if (listId != null) 'ListId': listId,
if (listUpdateToken != null) 'ListUpdateToken': listUpdateToken,
if (previousAppsList != null) 'PreviousAppsList': previousAppsList,
};
}