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