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