Sample<Harmonized extends Payload?>.from constructor
General constructor from JSON payload
Implementation
Sample.from(Map<String, dynamic> json, this.harmonized)
: startTimestamp = parseInt(json['startTimestamp']),
id = json['id'],
clientRecordId = json['clientRecordId'],
clientRecordVersion = tryParseInt(json['clientRecordVersion']),
startZoneOffsetSeconds = tryParseInt(json['startZoneOffsetSeconds']),
endZoneOffsetSeconds = tryParseInt(json['endZoneOffsetSeconds']),
recordingMethod = json['recordingMethod'] == null
? null
: RecordingMethod.from(json['recordingMethod']),
device = json['device'] == null
? null
: Device.fromJson(parseObject(json['device'])),
dataOrigin = json['dataOrigin'] == null
? null
: DataOrigin.fromJson(parseObject(json['dataOrigin'])),
lastModifiedTimestamp = tryParseInt(json['lastModifiedTimestamp']);