GoogleMapsPlacesV1Review.fromJson constructor
GoogleMapsPlacesV1Review.fromJson(
- Map json_
Implementation
GoogleMapsPlacesV1Review.fromJson(core.Map json_)
: this(
authorAttribution: json_.containsKey('authorAttribution')
? GoogleMapsPlacesV1AuthorAttribution.fromJson(
json_['authorAttribution']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
originalText: json_.containsKey('originalText')
? GoogleTypeLocalizedText.fromJson(
json_['originalText'] as core.Map<core.String, core.dynamic>)
: null,
publishTime: json_.containsKey('publishTime')
? json_['publishTime'] as core.String
: null,
rating: json_.containsKey('rating')
? (json_['rating'] as core.num).toDouble()
: null,
relativePublishTimeDescription:
json_.containsKey('relativePublishTimeDescription')
? json_['relativePublishTimeDescription'] as core.String
: null,
text: json_.containsKey('text')
? GoogleTypeLocalizedText.fromJson(
json_['text'] as core.Map<core.String, core.dynamic>)
: null,
);