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:
return null;
}
}