fromJson static method

Implementation

static DatabaseMigrationWarningType fromJson(String name) {
  switch (name) {
    case 'tableDropped':
      return tableDropped;
    case 'columnDropped':
      return columnDropped;
    case 'notNullAdded':
      return notNullAdded;
    case 'uniqueIndexCreated':
      return uniqueIndexCreated;
    default:
      throw ArgumentError(
          'Value "$name" cannot be converted to "DatabaseMigrationWarningType"');
  }
}