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