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