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