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.
		
		
		
		
		
			
		
			
				
					
					
						
							26 lines
						
					
					
						
							697 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							26 lines
						
					
					
						
							697 B
						
					
					
				| import 'package:hadi_hoda_flutter/features/question/data/model/file_model.dart'; | |
| import 'package:hadi_hoda_flutter/features/question/domain/entity/answer_entity.dart'; | |
| 
 | |
| class AnswerModel extends AnswerEntity { | |
|   AnswerModel({ | |
|     super.id, | |
|     super.title, | |
|     super.imageId, | |
|     super.imageInfo, | |
|     super.order, | |
|     super.isActive, | |
|   }); | |
| 
 | |
|   factory AnswerModel.fromJson(Map<String, dynamic> json) { | |
|     return AnswerModel( | |
|       id: json['id'], | |
|       title: json['title'], | |
|       imageId: json['image_id'], | |
|       imageInfo: json['image_info'] == null | |
|           ? null | |
|           : FileModel.fromJson(json['image_info']), | |
|       order: json['order'], | |
|       isActive: json['is_active'], | |
|     ); | |
|   } | |
| }
 |