decode static method

Implementation

static VideoWatermarkImageConfig decode(Object result) {
  result as List<Object?>;
  return VideoWatermarkImageConfig(
    wmAlpha: result[0] as double?,
    wmWidth: result[1] as int?,
    wmHeight: result[2] as int?,
    offsetX: result[3] as int?,
    offsetY: result[4] as int?,
    imagePaths: (result[5] as List<Object?>?)?.cast<String?>(),
    fps: result[6] as int?,
    loop: result[7] as bool?,
  );
}