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