Send JSON to server

This commit is contained in:
2023-12-26 16:06:24 +03:00
parent 503a82f79e
commit a8ed8b75b1
9 changed files with 48 additions and 53 deletions

View File

@@ -7,21 +7,21 @@ class UserRegistrationSheet {
String email;
String password;
String passwordConfirmation;
bool termsAccepted;
DateTime birthdate;
String termsAccepted;
String birthdate;
String gender;
String country;
String city;
String lang;
int weight;
int height;
int chestCircumference;
int waistCircumference;
int hipCircumference;
int bloodPressureUp;
int bloodPressureDown;
bool hasHypo = false;
bool hasHyper = false;
String weight;
String height;
String chestCircumference;
String waistCircumference;
String hipCircumference;
String bloodPressureUp;
String bloodPressureDown;
String hasHypo = '';
String hasHyper = '';
String aboutAllergy = '';
String aboutTakingPils = '';
String aboutSportHobbies = '';
@@ -66,7 +66,7 @@ class UserRegistrationSheet {
'password': password,
'password_confirmation': passwordConfirmation,
'terms': termsAccepted,
'birthdate': birthdate.toIso8601String(),
'birthdate': birthdate.toString(),
'gender': gender,
'country': country,
'city': city,