mirror of
				https://gitlab.com/foxixus/neomovies_mobile.git
				synced 2025-10-30 04:38:49 +05:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
		
			579 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			579 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| ![factory-droid[bot]](/assets/img/avatar_default.png)  | import 'package:json_annotation/json_annotation.dart'; | ||
|  | 
 | ||
|  | part 'player_response.g.dart'; | ||
|  | 
 | ||
|  | /// Response from player endpoints
 | ||
|  | /// Contains embed URL for different player services
 | ||
|  | @JsonSerializable() | ||
|  | class PlayerResponse { | ||
|  |   final String? embedUrl; | ||
|  |   final String? playerType; // 'alloha', 'lumex', 'vibix'
 | ||
|  |   final String? error; | ||
|  | 
 | ||
|  |   PlayerResponse({ | ||
|  |     this.embedUrl, | ||
|  |     this.playerType, | ||
|  |     this.error, | ||
|  |   }); | ||
|  | 
 | ||
|  |   factory PlayerResponse.fromJson(Map<String, dynamic> json) => | ||
|  |       _$PlayerResponseFromJson(json); | ||
|  | 
 | ||
|  |   Map<String, dynamic> toJson() => _$PlayerResponseToJson(this); | ||
|  | } |