decode static method

Implementation

static LocalRecordingLayoutConfig decode(Object result) {
  result as List<Object?>;
  return LocalRecordingLayoutConfig(
    offsetX: result[0]! as int,
    offsetY: result[1]! as int,
    width: result[2]! as int,
    height: result[3]! as int,
    scalingMode: result[4]! as int,
    watermarkList:
        (result[5] as List<Object?>?)?.cast<VideoWatermarkConfig?>(),
    isScreenShare: result[6]! as bool,
    bgColor: result[7]! as int,
  );
}