InternalLinkTypeAuthenticationCode.fromJson constructor

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

Parses a InternalLinkTypeAuthenticationCode from TDLib JSON.

Implementation

factory InternalLinkTypeAuthenticationCode.fromJson(
        Map<String, dynamic> json) =>
    InternalLinkTypeAuthenticationCode(
      code: _readString(json['code']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );