toInstancePatchStateOperatorType method

InstancePatchStateOperatorType toInstancePatchStateOperatorType()

Implementation

InstancePatchStateOperatorType toInstancePatchStateOperatorType() {
  switch (this) {
    case 'Equal':
      return InstancePatchStateOperatorType.equal;
    case 'NotEqual':
      return InstancePatchStateOperatorType.notEqual;
    case 'LessThan':
      return InstancePatchStateOperatorType.lessThan;
    case 'GreaterThan':
      return InstancePatchStateOperatorType.greaterThan;
  }
  throw Exception(
      '$this is not known in enum InstancePatchStateOperatorType');
}