You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
| // To parse this JSON data, do
 | |
| //
 | |
| //     final chatUserImageModel = chatUserImageModelFromJson(jsonString);
 | |
| 
 | |
| import 'dart:convert';
 | |
| 
 | |
| List<ChatUserImageModel> chatUserImageModelFromJson(String str) => List<ChatUserImageModel>.from(json.decode(str).map((x) => ChatUserImageModel.fromJson(x)));
 | |
| 
 | |
| String chatUserImageModelToJson(List<ChatUserImageModel> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));
 | |
| 
 | |
| class ChatUserImageModel {
 | |
|   ChatUserImageModel({
 | |
|     this.email,
 | |
|     this.profilePicture,
 | |
|     this.mobileNumber,
 | |
|   });
 | |
| 
 | |
|   String? email;
 | |
|   String? profilePicture;
 | |
|   String? mobileNumber;
 | |
| 
 | |
|   factory ChatUserImageModel.fromJson(Map<String, dynamic> json) => ChatUserImageModel(
 | |
|     email: json["email"] == null ? null : json["email"],
 | |
|     profilePicture: json["profilePicture"] == null ? null : json["profilePicture"],
 | |
|     mobileNumber: json["mobileNumber"] == null ? null : json["mobileNumber"],
 | |
|   );
 | |
| 
 | |
|   Map<String, dynamic> toJson() => {
 | |
|     "email": email == null ? null : email,
 | |
|     "profilePicture": profilePicture == null ? null : profilePicture,
 | |
|     "mobileNumber": mobileNumber == null ? null : mobileNumber,
 | |
|   };
 | |
| }
 |