AuthenticationCodeTypeTelegramMessage.fromJson constructor

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

Parses a AuthenticationCodeTypeTelegramMessage from TDLib JSON.

Implementation

factory AuthenticationCodeTypeTelegramMessage.fromJson(
        Map<String, dynamic> json) =>
    AuthenticationCodeTypeTelegramMessage(
      length: _readInt(json['length']),
    );