InternalLinkTypeWebApp.fromJson constructor

InternalLinkTypeWebApp.fromJson(
  1. Map<String, dynamic> json
)

Parses a InternalLinkTypeWebApp from TDLib JSON.

Implementation

factory InternalLinkTypeWebApp.fromJson(Map<String, dynamic> json) =>
    InternalLinkTypeWebApp(
      botUsername: _readString(json['bot_username']),
      webAppShortName: _readString(json['web_app_short_name']),
      startParameter: _readString(json['start_parameter']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );