Photo.fromJson constructor
Photo.fromJson(
- Map json_
Implementation
Photo.fromJson(core.Map json_)
: this(
captureTime: json_.containsKey('captureTime')
? json_['captureTime'] as core.String
: null,
connections: json_.containsKey('connections')
? (json_['connections'] as core.List)
.map((value) => Connection.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
downloadUrl: json_.containsKey('downloadUrl')
? json_['downloadUrl'] as core.String
: null,
mapsPublishStatus: json_.containsKey('mapsPublishStatus')
? json_['mapsPublishStatus'] as core.String
: null,
photoId: json_.containsKey('photoId')
? PhotoId.fromJson(
json_['photoId'] as core.Map<core.String, core.dynamic>)
: null,
places: json_.containsKey('places')
? (json_['places'] as core.List)
.map((value) => Place.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pose: json_.containsKey('pose')
? Pose.fromJson(
json_['pose'] as core.Map<core.String, core.dynamic>)
: null,
shareLink: json_.containsKey('shareLink')
? json_['shareLink'] as core.String
: null,
thumbnailUrl: json_.containsKey('thumbnailUrl')
? json_['thumbnailUrl'] as core.String
: null,
transferStatus: json_.containsKey('transferStatus')
? json_['transferStatus'] as core.String
: null,
uploadReference: json_.containsKey('uploadReference')
? UploadRef.fromJson(json_['uploadReference']
as core.Map<core.String, core.dynamic>)
: null,
uploadTime: json_.containsKey('uploadTime')
? json_['uploadTime'] as core.String
: null,
viewCount: json_.containsKey('viewCount')
? json_['viewCount'] as core.String
: null,
);