fromJson static method
Implementation
static AuthenticationCodeInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return AuthenticationCodeInfo(
phoneNumber: (json['phone_number'] as String?) ?? '',
type: AuthenticationCodeType.fromJson(tdMapFromJson(json['type'])),
nextType: AuthenticationCodeType.fromJson(
tdMapFromJson(json['next_type']),
),
timeout: (json['timeout'] as int?) ?? 0,
);
}