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