DatabaseMigration.fromJson constructor
DatabaseMigration.fromJson(
- Map<String, dynamic> jsonSerialization
)
Implementation
factory DatabaseMigration.fromJson(Map<String, dynamic> jsonSerialization) {
return DatabaseMigration(
actions: (jsonSerialization['actions'] as List)
.map((e) =>
_i2.DatabaseMigrationAction.fromJson((e as Map<String, dynamic>)))
.toList(),
warnings: (jsonSerialization['warnings'] as List)
.map((e) => _i2.DatabaseMigrationWarning.fromJson(
(e as Map<String, dynamic>)))
.toList(),
migrationApiVersion: jsonSerialization['migrationApiVersion'] as int,
);
}