Future<LoginResponse> login(String phone, String code, int countryId) async {
final response = await
client.post("$url/api/sms/code",
body: jsonEncode(
{"phone": phone, "code": code, "countryId": "$countryId", "device": Platform.isAndroid ? 1 : 2}),
headers: await getHeaders());
return LoginResponse.fromJson(onResponse(response));
}