toExpirationModelType method

ExpirationModelType toExpirationModelType()

Implementation

ExpirationModelType toExpirationModelType() {
  switch (this) {
    case 'KEY_MATERIAL_EXPIRES':
      return ExpirationModelType.keyMaterialExpires;
    case 'KEY_MATERIAL_DOES_NOT_EXPIRE':
      return ExpirationModelType.keyMaterialDoesNotExpire;
  }
  throw Exception('$this is not known in enum ExpirationModelType');
}