feat(verify): phone

This commit is contained in:
mso7nueh
2025-05-21 17:42:43 +03:00
parent cb9fff9327
commit 067e0929ed
98 changed files with 821 additions and 760 deletions

View File

@@ -6,7 +6,7 @@ part 'profile_model.freezed.dart';
part 'profile_model.g.dart';
@freezed
class ProfileModel with _$ProfileModel {
abstract class ProfileModel with _$ProfileModel {
const factory ProfileModel({
@JsonKey(name: "id") required int id,
@JsonKey(name: "name") required String name,
@@ -31,7 +31,7 @@ class ProfileModel with _$ProfileModel {
}
@freezed
class DiplomasAndCertificatesModel with _$DiplomasAndCertificatesModel {
abstract class DiplomasAndCertificatesModel with _$DiplomasAndCertificatesModel {
const factory DiplomasAndCertificatesModel({
required int id,
required String path,
@@ -41,10 +41,10 @@ class DiplomasAndCertificatesModel with _$DiplomasAndCertificatesModel {
}
@freezed
class EducationModel with _$EducationModel {
abstract class EducationModel with _$EducationModel {
const factory EducationModel({
@JsonKey(name: "has_medical_education") int? hasMedicalEducation,
@JsonKey(name: "completed_cources") List<Map<String, CompletedCoursesModel>>? completedCourses,
@JsonKey(name: "completed_courses") List<Map<String, CompletedCoursesModel>>? completedCourses,
@JsonKey(name: "vk_link") String? vkLink,
@JsonKey(name: "insta_link") String? instaLink,
@JsonKey(name: "fb_link") String? fbLink,
@@ -57,7 +57,7 @@ class EducationModel with _$EducationModel {
}
@freezed
class CompletedCoursesModel with _$CompletedCoursesModel {
abstract class CompletedCoursesModel with _$CompletedCoursesModel {
const factory CompletedCoursesModel({
required String date,
required String title,
@@ -67,7 +67,7 @@ class CompletedCoursesModel with _$CompletedCoursesModel {
}
@freezed
class ProfileDetailsModel with _$ProfileDetailsModel {
abstract class ProfileDetailsModel with _$ProfileDetailsModel {
const factory ProfileDetailsModel({
@JsonKey(name: "first_name") required String firstName,
@JsonKey(name: "last_name") required String lastName,
@@ -102,7 +102,7 @@ class ProfileDetailsModel with _$ProfileDetailsModel {
}
@freezed
class ProfilePreviewModel with _$ProfilePreviewModel {
abstract class ProfilePreviewModel with _$ProfilePreviewModel {
const factory ProfilePreviewModel({
@JsonKey(name: "profile_photo_url") required String profilePhotoUrl,
}) = _ProfilePreviewModel;