toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final listName = this.listName;
  final protocolsList = this.protocolsList;
  final createTime = this.createTime;
  final lastUpdateTime = this.lastUpdateTime;
  final listId = this.listId;
  final listUpdateToken = this.listUpdateToken;
  final previousProtocolsList = this.previousProtocolsList;
  return {
    'ListName': listName,
    'ProtocolsList': protocolsList,
    if (createTime != null) 'CreateTime': unixTimestampToJson(createTime),
    if (lastUpdateTime != null)
      'LastUpdateTime': unixTimestampToJson(lastUpdateTime),
    if (listId != null) 'ListId': listId,
    if (listUpdateToken != null) 'ListUpdateToken': listUpdateToken,
    if (previousProtocolsList != null)
      'PreviousProtocolsList': previousProtocolsList,
  };
}