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