DatabaseMigrationWarning.fromJson constructor

DatabaseMigrationWarning.fromJson(
  1. Map<String, dynamic> jsonSerialization,
  2. SerializationManager serializationManager
)

Implementation

factory DatabaseMigrationWarning.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return DatabaseMigrationWarning(
    type: serializationManager.deserialize<_i2.DatabaseMigrationWarningType>(
        jsonSerialization['type']),
    message: serializationManager
        .deserialize<String>(jsonSerialization['message']),
    table:
        serializationManager.deserialize<String>(jsonSerialization['table']),
    columns: serializationManager
        .deserialize<List<String>>(jsonSerialization['columns']),
    destrucive: serializationManager
        .deserialize<bool>(jsonSerialization['destrucive']),
  );
}