toType method

Type toType()

Implementation

Type toType() {
  switch (this) {
    case 'CanonicalUser':
      return Type.canonicalUser;
    case 'AmazonCustomerByEmail':
      return Type.amazonCustomerByEmail;
    case 'Group':
      return Type.group;
  }
  throw Exception('$this is not known in enum Type');
}