toBooleanEnumType method

BooleanEnumType toBooleanEnumType()

Implementation

BooleanEnumType toBooleanEnumType() {
  switch (this) {
    case 'TRUE':
      return BooleanEnumType.$true;
    case 'FALSE':
      return BooleanEnumType.$false;
  }
  throw Exception('$this is not known in enum BooleanEnumType');
}