decode static method

VideoWatermarkConfig decode(
  1. Object result
)

Implementation

static VideoWatermarkConfig decode(Object result) {
  result as List<Object?>;
  return VideoWatermarkConfig(
    WatermarkType: NERtcVideoWatermarkType.values[result[0]! as int],
    imageWatermark: result[1] != null
        ? VideoWatermarkImageConfig.decode(result[1]! as List<Object?>)
        : null,
    textWatermark: result[2] != null
        ? VideoWatermarkTextConfig.decode(result[2]! as List<Object?>)
        : null,
    timestampWatermark: result[3] != null
        ? VideoWatermarkTimestampConfig.decode(result[3]! as List<Object?>)
        : null,
  );
}