SpikeOxygenData.fromObject constructor
SpikeOxygenData.fromObject(
- dynamic object
Implementation
factory SpikeOxygenData.fromObject(final dynamic object) {
final reflection = SpikeDataReflectiveModel.fromObject(
object,
entryConverter: (item) => SpikeOxygenSaturationDataEntry.fromObject(item),
type: SpikeDataType.oxygenSaturation,
);
return SpikeOxygenData._(
userId: reflection.userId,
startDate: reflection.startDate,
endDate: reflection.endDate,
dataTypeName: reflection.dataTypeName,
collectedAt: reflection.collectedAt,
type: reflection.type,
sources: reflection.sources,
entries: reflection.entries,
);
}