AuthenticationCodeTypeSmsPhrase.fromJson constructor

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

Parses a AuthenticationCodeTypeSmsPhrase from TDLib JSON.

Implementation

factory AuthenticationCodeTypeSmsPhrase.fromJson(Map<String, dynamic> json) =>
    AuthenticationCodeTypeSmsPhrase(
      firstWord: _readString(json['first_word']),
    );