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