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