You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							431 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							431 B
						
					
					
				| class ChatMessage { | |
|   String idFrom; | |
|   String idTo; | |
|   String content; | |
|   int type; | |
|   DateTime timestamp; | |
| 
 | |
|   ChatMessage({ | |
|     this.idFrom, | |
|     this.idTo, | |
|     this.content, | |
|     this.type, | |
|     this.timestamp, | |
|   }); | |
| 
 | |
|   ChatMessage.fromJson(Map<dynamic, dynamic> json) | |
|       : idFrom = json['idFrom'], | |
|         idTo = json['idTo'], | |
|         content = json['content'], | |
|         type = json['type'], | |
|         timestamp = json['timestamp']; | |
| }
 | |
| 
 |