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