PickResult.fromPlaceDetailResult constructor

PickResult.fromPlaceDetailResult(
  1. PlaceDetails result
)

Implementation

factory PickResult.fromPlaceDetailResult(PlaceDetails result) {
  return PickResult(
    placeId: result.placeId,
    geometry: result.geometry,
    formattedAddress: result.formattedAddress,
    types: result.types,
    addressComponents: result.addressComponents,
    adrAddress: result.adrAddress,
    formattedPhoneNumber: result.formattedPhoneNumber,
    id: result.id,
    reference: result.reference,
    icon: result.icon,
    name: result.name,
    openingHours: result.openingHours,
    photos: result.photos,
    internationalPhoneNumber: result.internationalPhoneNumber,
    priceLevel: result.priceLevel,
    rating: result.rating,
    scope: result.scope,
    url: result.url,
    vicinity: result.vicinity,
    utcOffset: result.utcOffset,
    website: result.website,
    reviews: result.reviews,
  );
}