DatabaseMigrationWarning.fromJson constructor
DatabaseMigrationWarning.fromJson(
- Map<String, dynamic> jsonSerialization
)
Implementation
factory DatabaseMigrationWarning.fromJson(
Map<String, dynamic> jsonSerialization) {
return DatabaseMigrationWarning(
type: _i2.DatabaseMigrationWarningType.fromJson(
(jsonSerialization['type'] as String)),
message: jsonSerialization['message'] as String,
table: jsonSerialization['table'] as String,
columns: (jsonSerialization['columns'] as List)
.map((e) => e as String)
.toList(),
destrucive: jsonSerialization['destrucive'] as bool,
);
}