fromJson static method

Implementation

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