toOwnership method

Ownership toOwnership()

Implementation

Ownership toOwnership() {
  switch (this) {
    case 'Self':
      return Ownership.self;
    case 'Shared':
      return Ownership.shared;
    case 'Amazon':
      return Ownership.amazon;
  }
  throw Exception('$this is not known in enum Ownership');
}