BackupRestoration.fromMap constructor

BackupRestoration.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory BackupRestoration.fromMap(Map<String, dynamic> map) {
  return BackupRestoration(
    $id: map['\$id'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    archiveId: map['archiveId'].toString(),
    policyId: map['policyId'].toString(),
    status: map['status'].toString(),
    startedAt: map['startedAt'].toString(),
    migrationId: map['migrationId'].toString(),
    services: List.from(map['services'] ?? []),
    resources: List.from(map['resources'] ?? []),
    options: map['options'].toString(),
  );
}