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