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