WebAppData constructor

const WebAppData({
  1. @JsonKey(name: 'data') required String data,
  2. @JsonKey(name: 'button_text') required String buttonText,
})

Constructs a WebAppData object

Implementation

const factory WebAppData({
  /// The data. Be aware that a bad client can send arbitrary data in this
  /// field.
  @JsonKey(name: 'data') required String data,

  /// Text of the web_app keyboard button from which the Web App was opened.
  /// Be aware that a bad client can send arbitrary data in this field.
  @JsonKey(name: 'button_text') required String buttonText,
}) = _WebAppData;