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.
		
		
		
		
		
			
		
			
				
					
					
						
							32 lines
						
					
					
						
							883 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							32 lines
						
					
					
						
							883 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,
							 | 
						|
								    super.audioID,
							 | 
						|
								    super.audioInfo,
							 | 
						|
								  });
							 | 
						|
								
							 | 
						|
								  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'],
							 | 
						|
								      audioID: json['audio_id'],
							 | 
						|
								      audioInfo: json['audio_info'] == null
							 | 
						|
								          ? null
							 | 
						|
								          : FileModel.fromJson(json['audio_info']),
							 | 
						|
								    );
							 | 
						|
								  }
							 | 
						|
								}
							 |