toJson method

  1. @override
Map<String, dynamic> toJson()
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
  };
}