toLayerFailureCode method

LayerFailureCode toLayerFailureCode()

Implementation

LayerFailureCode toLayerFailureCode() {
  switch (this) {
    case 'InvalidLayerDigest':
      return LayerFailureCode.invalidLayerDigest;
    case 'MissingLayerDigest':
      return LayerFailureCode.missingLayerDigest;
  }
  throw Exception('$this is not known in enum LayerFailureCode');
}