MsSmoothGroupSettings.fromJson constructor

MsSmoothGroupSettings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MsSmoothGroupSettings.fromJson(Map<String, dynamic> json) {
  return MsSmoothGroupSettings(
    destination: OutputLocationRef.fromJson(
        json['destination'] as Map<String, dynamic>),
    acquisitionPointId: json['acquisitionPointId'] as String?,
    audioOnlyTimecodeControl: (json['audioOnlyTimecodeControl'] as String?)
        ?.toSmoothGroupAudioOnlyTimecodeControl(),
    certificateMode:
        (json['certificateMode'] as String?)?.toSmoothGroupCertificateMode(),
    connectionRetryInterval: json['connectionRetryInterval'] as int?,
    eventId: json['eventId'] as String?,
    eventIdMode: (json['eventIdMode'] as String?)?.toSmoothGroupEventIdMode(),
    eventStopBehavior: (json['eventStopBehavior'] as String?)
        ?.toSmoothGroupEventStopBehavior(),
    filecacheDuration: json['filecacheDuration'] as int?,
    fragmentLength: json['fragmentLength'] as int?,
    inputLossAction: (json['inputLossAction'] as String?)
        ?.toInputLossActionForMsSmoothOut(),
    numRetries: json['numRetries'] as int?,
    restartDelay: json['restartDelay'] as int?,
    segmentationMode: (json['segmentationMode'] as String?)
        ?.toSmoothGroupSegmentationMode(),
    sendDelayMs: json['sendDelayMs'] as int?,
    sparseTrackType:
        (json['sparseTrackType'] as String?)?.toSmoothGroupSparseTrackType(),
    streamManifestBehavior: (json['streamManifestBehavior'] as String?)
        ?.toSmoothGroupStreamManifestBehavior(),
    timestampOffset: json['timestampOffset'] as String?,
    timestampOffsetMode: (json['timestampOffsetMode'] as String?)
        ?.toSmoothGroupTimestampOffsetMode(),
  );
}