toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'answerWebAppQuery',
    if (extra != null) '@extra': extra,
    'web_app_query_id': web_app_query_id,
    'result': result
  };
}