ColumnMigration.fromJson constructor

ColumnMigration.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory ColumnMigration.fromJson(Map<String, dynamic> jsonSerialization) {
  return ColumnMigration(
    columnName: jsonSerialization['columnName'] as String,
    addNullable: jsonSerialization['addNullable'] as bool,
    removeNullable: jsonSerialization['removeNullable'] as bool,
    changeDefault: jsonSerialization['changeDefault'] as bool,
    newDefault: jsonSerialization['newDefault'] as String?,
  );
}