DashIsoGroupSettings.fromJson constructor

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

Implementation

factory DashIsoGroupSettings.fromJson(Map<String, dynamic> json) {
  return DashIsoGroupSettings(
    additionalManifests: (json['additionalManifests'] as List?)
        ?.whereNotNull()
        .map(
            (e) => DashAdditionalManifest.fromJson(e as Map<String, dynamic>))
        .toList(),
    baseUrl: json['baseUrl'] as String?,
    destination: json['destination'] as String?,
    destinationSettings: json['destinationSettings'] != null
        ? DestinationSettings.fromJson(
            json['destinationSettings'] as Map<String, dynamic>)
        : null,
    encryption: json['encryption'] != null
        ? DashIsoEncryptionSettings.fromJson(
            json['encryption'] as Map<String, dynamic>)
        : null,
    fragmentLength: json['fragmentLength'] as int?,
    hbbtvCompliance:
        (json['hbbtvCompliance'] as String?)?.toDashIsoHbbtvCompliance(),
    minBufferTime: json['minBufferTime'] as int?,
    minFinalSegmentLength: json['minFinalSegmentLength'] as double?,
    mpdProfile: (json['mpdProfile'] as String?)?.toDashIsoMpdProfile(),
    segmentControl:
        (json['segmentControl'] as String?)?.toDashIsoSegmentControl(),
    segmentLength: json['segmentLength'] as int?,
    writeSegmentTimelineInRepresentation:
        (json['writeSegmentTimelineInRepresentation'] as String?)
            ?.toDashIsoWriteSegmentTimelineInRepresentation(),
  );
}