Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'getNetworkStatistics', if (extra != null) '@extra': extra, 'only_current': only_current }; }