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