Serialise to the wire format.
Map<String, Object?> toJson() => <String, Object?>{ 'guard': guard, 'in': input, 'out': output, 'changed': changed, };