toSourceType method

SourceType toSourceType()

Implementation

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