123456789101112131415161718192021222324252627282930 |
- class Profile {
- final String id;
- final String userName;
- final String accessToken;
- String organizationCode;
- String host;
- Profile(
- {required this.id,
- required this.userName,
- required this.accessToken,
- required this.organizationCode,
- required this.host});
- factory Profile.fromJson(Map<String, dynamic> json) {
- return Profile(
- id: json['id'] as String,
- userName: json['userName'] as String,
- accessToken: json['accessToken'] as String,
- organizationCode: json['organizationCode'] as String,
- host: json['host'] as String);
- }
- Map<String, dynamic> toJson() => {
- 'id': id,
- "userName": userName,
- "accessToken": accessToken,
- "organizationCode": organizationCode,
- 'host': host
- };
- }
|