Scte35SegmentationDescriptor.fromJson constructor

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

Implementation

factory Scte35SegmentationDescriptor.fromJson(Map<String, dynamic> json) {
  return Scte35SegmentationDescriptor(
    segmentationCancelIndicator:
        (json['segmentationCancelIndicator'] as String)
            .toScte35SegmentationCancelIndicator(),
    segmentationEventId: json['segmentationEventId'] as int,
    deliveryRestrictions: json['deliveryRestrictions'] != null
        ? Scte35DeliveryRestrictions.fromJson(
            json['deliveryRestrictions'] as Map<String, dynamic>)
        : null,
    segmentNum: json['segmentNum'] as int?,
    segmentationDuration: json['segmentationDuration'] as int?,
    segmentationTypeId: json['segmentationTypeId'] as int?,
    segmentationUpid: json['segmentationUpid'] as String?,
    segmentationUpidType: json['segmentationUpidType'] as int?,
    segmentsExpected: json['segmentsExpected'] as int?,
    subSegmentNum: json['subSegmentNum'] as int?,
    subSegmentsExpected: json['subSegmentsExpected'] as int?,
  );
}