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