toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = super.toJson();
  data.putIfNotNull("title", title);
  data.putIfNotNull("summary", summary);
  data.putIfNotNull("messageList", _messageList);
  data.putIfNotNull("compatibleText", _compatibleText);
  data.putIfNotNull("localPath", _localPath);
  data.putIfNotNull("remotePath", _remotePath);
  data.putIfNotNull("secret", _secret);
  data.putIfNotNull("fileStatus", downloadStatusToInt(this.fileStatus));
  return data;
}