Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class DeleteAccountResponse {
|
||||
DeleteAccountResponse({
|
||||
this.message,});
|
||||
|
||||
DeleteAccountResponse.fromJson(dynamic json) {
|
||||
message = json['message'];
|
||||
}
|
||||
String? message;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final map = <String, dynamic>{};
|
||||
map['message'] = message;
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
36
lib/features/profile/data/models/profile_response.dart
Normal file
36
lib/features/profile/data/models/profile_response.dart
Normal file
@@ -0,0 +1,36 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class ProfileResponse extends Equatable {
|
||||
const ProfileResponse({
|
||||
this.fullname,
|
||||
this.phoneNumber,
|
||||
this.email,
|
||||
this.ucode,
|
||||
});
|
||||
|
||||
factory ProfileResponse.fromJson(dynamic json) {
|
||||
return ProfileResponse(
|
||||
fullname: json['fullname'],
|
||||
phoneNumber: json['phone_number'],
|
||||
email: json['email'],
|
||||
ucode: json['ucode'],
|
||||
);
|
||||
}
|
||||
|
||||
final String? fullname;
|
||||
final String? phoneNumber;
|
||||
final String? email;
|
||||
final String? ucode;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final map = <String, dynamic>{};
|
||||
map['fullname'] = fullname;
|
||||
map['phone_number'] = phoneNumber;
|
||||
map['email'] = email;
|
||||
map['ucode'] = ucode;
|
||||
return map;
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [fullname, phoneNumber, email, ucode];
|
||||
}
|
||||
24
lib/features/profile/data/models/profile_update_request.dart
Normal file
24
lib/features/profile/data/models/profile_update_request.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
class ProfileUpdateRequest {
|
||||
ProfileUpdateRequest({
|
||||
this.fullname,
|
||||
this.phoneNumber,
|
||||
this.email,});
|
||||
|
||||
ProfileUpdateRequest.fromJson(dynamic json) {
|
||||
fullname = json['fullname'];
|
||||
phoneNumber = json['phone_number'];
|
||||
email = json['email'];
|
||||
}
|
||||
String? fullname;
|
||||
String? phoneNumber;
|
||||
String? email;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final map = <String, dynamic>{};
|
||||
map['fullname'] = fullname;
|
||||
map['phone_number'] = phoneNumber;
|
||||
map['email'] = email;
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user