toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var attachments = this.attachments;
  var comment = this.comment;

  final json = <String, Object?>{};
  if (attachments != null) {
    json[r'attachments'] = attachments.toJson();
  }
  if (comment != null) {
    json[r'comment'] = comment.toJson();
  }
  return json;
}