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