toInterpolationTypes method

InterpolationTypes toInterpolationTypes()

Convert from a SYZ_INTERPOLATION_TYPES member.

Implementation

InterpolationTypes toInterpolationTypes() {
  switch (this) {
    case SYZ_INTERPOLATION_TYPES.SYZ_INTERPOLATION_TYPE_NONE:
      return InterpolationTypes.none;
    case SYZ_INTERPOLATION_TYPES.SYZ_INTERPOLATION_TYPE_LINEAR:
      return InterpolationTypes.linear;
    default:
      throw SynthizerError(
        'Unrecognised `SYZ_INTERPOLATION_TYPES` member.',
        this,
      );
  }
}