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