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