fromString static method

SyncOperation fromString(
  1. String value
)

Converte uma string para o enum correspondente

Implementation

static SyncOperation fromString(String value) {
  return SyncOperation.values.firstWhere(
    (operation) => operation.value == value,
    orElse: () => throw ArgumentError('Operação não suportada: $value'),
  );
}