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