decode static method

Implementation

static SetVideoCorrectionConfigRequest decode(Object result) {
  result as List<Object?>;
  return SetVideoCorrectionConfigRequest(
    topLeft: result[0] != null
        ? CGPoint.decode(result[0]! as List<Object?>)
        : null,
    topRight: result[1] != null
        ? CGPoint.decode(result[1]! as List<Object?>)
        : null,
    bottomLeft: result[2] != null
        ? CGPoint.decode(result[2]! as List<Object?>)
        : null,
    bottomRight: result[3] != null
        ? CGPoint.decode(result[3]! as List<Object?>)
        : null,
    canvasWidth: result[4] as double?,
    canvasHeight: result[5] as double?,
    enableMirror: result[6] as bool?,
  );
}