toType method

Type toType()

Implementation

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