decode static method

VideoOptions decode(
  1. Object result
)

Implementation

static VideoOptions decode(Object result) {
  result as List<Object?>;
  return VideoOptions(
    enableAudio: result[0]! as bool,
    quality: result[1] != null
        ? VideoRecordingQuality.values[result[1]! as int]
        : null,
    android: result[2] != null
        ? AndroidVideoOptions.decode(result[2]! as List<Object?>)
        : null,
    ios: result[3] != null
        ? CupertinoVideoOptions.decode(result[3]! as List<Object?>)
        : null,
  );
}