GoogleMapsPlacesV1ContextualContent.fromJson constructor

GoogleMapsPlacesV1ContextualContent.fromJson(
  1. Map json_
)

Implementation

GoogleMapsPlacesV1ContextualContent.fromJson(core.Map json_)
    : this(
        justifications: json_.containsKey('justifications')
            ? (json_['justifications'] as core.List)
                .map((value) =>
                    GoogleMapsPlacesV1ContextualContentJustification.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        photos: json_.containsKey('photos')
            ? (json_['photos'] as core.List)
                .map((value) => GoogleMapsPlacesV1Photo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reviews: json_.containsKey('reviews')
            ? (json_['reviews'] as core.List)
                .map((value) => GoogleMapsPlacesV1Review.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );