Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
profile_model.dart
Go to the documentation of this file.
1import 'package:connect/features/account/domain/entities/profile_entity.dart';
2
5 super.email,
6 super.id,
7 super.name,
8 super.phoneNumber,
9 });
10
11 factory ProfileModel.fromJson(Map<String, dynamic> json) {
12 return ProfileModel(
13 email: json['email'] as String?,
14 id: json['id'] as int?,
15 phoneNumber: json['phone'] as String?,
16 name: json['name'] as String?,
17 );
18 }
19
20 Map<String, dynamic> toJson() {
21 return {
22 'email': email,
23 'id': id,
24 'name': name,
25 'phone': phoneNumber,
26 };
27 }
28}
const ProfileEntity({ this.email, this.id, this.phoneNumber, this.name, })
Map< String, dynamic > toJson()
final String email
ProfileModel({ super.email, super.id, super.name, super.phoneNumber, })
final String name
final String phoneNumber