toOrigin method

Origin toOrigin()

Implementation

Origin toOrigin() {
  switch (this) {
    case 'OWNED':
      return Origin.owned;
    case 'ENTITLED':
      return Origin.entitled;
  }
  throw Exception('$this is not known in enum Origin');
}