PhotoSequence.fromJson constructor
PhotoSequence.fromJson(
- Map json_
Implementation
PhotoSequence.fromJson(core.Map json_)
: this(
captureTimeOverride: json_.containsKey('captureTimeOverride')
? json_['captureTimeOverride'] as core.String
: null,
distanceMeters: json_.containsKey('distanceMeters')
? (json_['distanceMeters'] as core.num).toDouble()
: null,
failureDetails: json_.containsKey('failureDetails')
? ProcessingFailureDetails.fromJson(json_['failureDetails']
as core.Map<core.String, core.dynamic>)
: null,
failureReason: json_.containsKey('failureReason')
? json_['failureReason'] as core.String
: null,
filename: json_.containsKey('filename')
? json_['filename'] as core.String
: null,
gpsSource: json_.containsKey('gpsSource')
? json_['gpsSource'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
imu: json_.containsKey('imu')
? Imu.fromJson(
json_['imu'] as core.Map<core.String, core.dynamic>)
: null,
photos: json_.containsKey('photos')
? (json_['photos'] as core.List)
.map((value) => Photo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
processingState: json_.containsKey('processingState')
? json_['processingState'] as core.String
: null,
rawGpsTimeline: json_.containsKey('rawGpsTimeline')
? (json_['rawGpsTimeline'] as core.List)
.map((value) => Pose.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sequenceBounds: json_.containsKey('sequenceBounds')
? LatLngBounds.fromJson(json_['sequenceBounds']
as core.Map<core.String, core.dynamic>)
: 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,
);