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