DatabaseMigration.fromMap constructor
DatabaseMigration.fromMap(
- Map<String, dynamic> map
)
Implementation
factory DatabaseMigration.fromMap(Map<String, dynamic> map) {
return DatabaseMigration(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
projectId: map['projectId'].toString(),
databaseId: map['databaseId'].toString(),
specification: map['specification'].toString(),
phase: map['phase'].toString(),
attempt: map['attempt'],
lastError: map['lastError'].toString(),
lagDocuments: map['lagDocuments'],
verifiedAt: map['verifiedAt'].toString(),
cutoverAt: map['cutoverAt'].toString(),
soakUntil: map['soakUntil'].toString(),
autoCutover: map['autoCutover'],
cutoverRequested: map['cutoverRequested'],
paused: map['paused'],
);
}