AuthenticationCodeTypeFragment.fromJson constructor

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

Parses a AuthenticationCodeTypeFragment from TDLib JSON.

Implementation

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