AuthenticationCodeTypeSms.fromJson constructor

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

Parses a AuthenticationCodeTypeSms from TDLib JSON.

Implementation

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