RtmpGroupSettings.fromJson constructor
RtmpGroupSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RtmpGroupSettings.fromJson(Map<String, dynamic> json) {
return RtmpGroupSettings(
adMarkers: (json['adMarkers'] as List?)
?.whereNotNull()
.map((e) => (e as String).toRtmpAdMarkers())
.toList(),
authenticationScheme:
(json['authenticationScheme'] as String?)?.toAuthenticationScheme(),
cacheFullBehavior:
(json['cacheFullBehavior'] as String?)?.toRtmpCacheFullBehavior(),
cacheLength: json['cacheLength'] as int?,
captionData: (json['captionData'] as String?)?.toRtmpCaptionData(),
inputLossAction:
(json['inputLossAction'] as String?)?.toInputLossActionForRtmpOut(),
restartDelay: json['restartDelay'] as int?,
);
}