fromMap static method
override
Construct from Map.
Implementation
static AuthenticationCodeInfo? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var phone_number = _map['phone_number']! as String;
var type = AuthenticationCodeType.fromMap(_map['type'])!;
var next_type = AuthenticationCodeType.fromMap(_map['next_type']);
var timeout = _map['timeout']! as int;
return AuthenticationCodeInfo(
extra: extra,
clientId: clientId,
phone_number: phone_number,
type: type,
next_type: next_type,
timeout: timeout,
);
}