InternalLinkTypeMainWebApp.fromJson constructor

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

Parses a InternalLinkTypeMainWebApp from TDLib JSON.

Implementation

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