parseMigrationResult function

MigrationResult parseMigrationResult(
  1. String? value
)

Parses the name of a MigrationResult to a MigrationResult

Implementation

MigrationResult parseMigrationResult(String? value) {
  if (value == null || value.isEmpty) {
    return MigrationResult.skipped;
  }

  return MigrationResult.values
      .singleWhere((enumValue) => enumValue.name == value);
}