public void FromProto() { var proto = new LatLng { Latitude = 15, Longitude = 10 }; var expected = new GeoPoint(15, 10); Assert.Equal(expected, GeoPoint.FromProto(proto)); }
protected override object DeserializeGeoPoint(FirestoreDb db, LatLng value) => GeoPoint.FromProto(value);
protected override object DeserializeGeoPoint(DeserializationContext context, LatLng value) => GeoPoint.FromProto(value);