toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cmafGroupSettings = this.cmafGroupSettings;
  final dashIsoGroupSettings = this.dashIsoGroupSettings;
  final fileGroupSettings = this.fileGroupSettings;
  final hlsGroupSettings = this.hlsGroupSettings;
  final msSmoothGroupSettings = this.msSmoothGroupSettings;
  final type = this.type;
  return {
    if (cmafGroupSettings != null) 'cmafGroupSettings': cmafGroupSettings,
    if (dashIsoGroupSettings != null)
      'dashIsoGroupSettings': dashIsoGroupSettings,
    if (fileGroupSettings != null) 'fileGroupSettings': fileGroupSettings,
    if (hlsGroupSettings != null) 'hlsGroupSettings': hlsGroupSettings,
    if (msSmoothGroupSettings != null)
      'msSmoothGroupSettings': msSmoothGroupSettings,
    if (type != null) 'type': type.toValue(),
  };
}