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