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