toJson method

Map<String, dynamic> toJson()

Converts this object to a map in JSON format.

Implementation

Map<String, dynamic> toJson() {
  return {
    'text': text,
    'web_app': webApp?.toJson(),
    'start_parameter': startParameter,
  }..removeWhere(_nullFilter);
}