forked from eatvio/eatvio_app
feat(profile): social links
This commit is contained in:
@@ -22,11 +22,27 @@ class ProfileModel with _$ProfileModel {
|
||||
@JsonKey(name: "badges") required List<BadgeModel> badges,
|
||||
@JsonKey(name: "subscriptions") required List<ProfilePreviewModel> subscriptions,
|
||||
@JsonKey(name: "subscribers") required List<ProfilePreviewModel> subscribers,
|
||||
@JsonKey(name: "education_resource") EducationResource? educationResource,
|
||||
}) = _ProfileModel;
|
||||
|
||||
factory ProfileModel.fromJson(Map<String, dynamic> json) => _$ProfileModelFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
class EducationResource with _$EducationResource {
|
||||
const factory EducationResource({
|
||||
@JsonKey(name: "has_medical_education") int? hasMedical_Education,
|
||||
@JsonKey(name: "vk_link") String? vkLink,
|
||||
@JsonKey(name: "insta_link") String? instaLink,
|
||||
@JsonKey(name: "fb_link") String? fbLink,
|
||||
@JsonKey(name: "tg_link") String? tgLink,
|
||||
@JsonKey(name: "personal_site_link") String? personalSiteLink,
|
||||
@JsonKey(name: "request_state") String? requestState,
|
||||
}) = _EducationResource;
|
||||
|
||||
factory EducationResource.fromJson(Map<String, dynamic> json) => _$EducationResourceFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
class ProfileDetailsModel with _$ProfileDetailsModel {
|
||||
const factory ProfileDetailsModel({
|
||||
|
||||
Reference in New Issue
Block a user