fromJson static method

Implementation

static DatabaseMigrationActionType fromJson(String name) {
  switch (name) {
    case 'createTable':
      return DatabaseMigrationActionType.createTable;
    case 'createTableIfNotExists':
      return DatabaseMigrationActionType.createTableIfNotExists;
    case 'deleteTable':
      return DatabaseMigrationActionType.deleteTable;
    case 'alterTable':
      return DatabaseMigrationActionType.alterTable;
    default:
      throw ArgumentError(
        'Value "$name" cannot be converted to "DatabaseMigrationActionType"',
      );
  }
}