toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final alphaBehavior = this.alphaBehavior;
  final colorSpace = this.colorSpace;
  final colorSpaceUsage = this.colorSpaceUsage;
  final hdr10Metadata = this.hdr10Metadata;
  final pid = this.pid;
  final programNumber = this.programNumber;
  final rotate = this.rotate;
  return {
    if (alphaBehavior != null) 'alphaBehavior': alphaBehavior.toValue(),
    if (colorSpace != null) 'colorSpace': colorSpace.toValue(),
    if (colorSpaceUsage != null) 'colorSpaceUsage': colorSpaceUsage.toValue(),
    if (hdr10Metadata != null) 'hdr10Metadata': hdr10Metadata,
    if (pid != null) 'pid': pid,
    if (programNumber != null) 'programNumber': programNumber,
    if (rotate != null) 'rotate': rotate.toValue(),
  };
}