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