core.Map<core.String, core.dynamic> toJson() => { if (hl7Ack != null) 'hl7Ack': hl7Ack!, if (message != null) 'message': message!, };