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