Serializes an AttachmentAction to json
@override Map<String, dynamic> toJson() => { 'type': _AttachmentActionType.delete.name, 'attachment': attachment.toJson(), };