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