webSnapshotToPlatformSnapshot function

DataSnapshotPlatform webSnapshotToPlatformSnapshot(
  1. DatabaseReferencePlatform ref,
  2. DataSnapshot snapshot
)

Builds DataSnapshotPlatform instance form web snapshot instance

Implementation

DataSnapshotPlatform webSnapshotToPlatformSnapshot(
  DatabaseReferencePlatform ref,
  database_interop.DataSnapshot snapshot,
) {
  return DataSnapshotWeb(ref, snapshot);
}