AudioOnlyHlsSettings.fromJson constructor
AudioOnlyHlsSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AudioOnlyHlsSettings.fromJson(Map<String, dynamic> json) {
return AudioOnlyHlsSettings(
audioGroupId: json['audioGroupId'] as String?,
audioOnlyImage: json['audioOnlyImage'] != null
? InputLocation.fromJson(
json['audioOnlyImage'] as Map<String, dynamic>)
: null,
audioTrackType:
(json['audioTrackType'] as String?)?.toAudioOnlyHlsTrackType(),
segmentType:
(json['segmentType'] as String?)?.toAudioOnlyHlsSegmentType(),
);
}