TempcordDataParser<P extends ProfileJson, N extends BodyTemperatureRecordNodeCsvRow> constructor
TempcordDataParser<P extends ProfileJson, N extends BodyTemperatureRecordNodeCsvRow> ({
- required ProfileJsonDataConverter<
P> profileConverter, - required BodyTemperatureRecordListCsvConverter<
N> btrlConverter, - List<
GenericTempcordDataConverter> ? additionalConverter,
Construct TempcordDataParser.
The format of the exported data must be followed this order:
- ProfileJson.
- BodyTemperatureRecordListCsv with BodyTemperatureRecordNodeCsvRow.
- (Your own implemented
additionalConverter
).
These order should be return the same type order of readBytes. And no
duplicated type defined in additionalConverter
.
Implementation
factory TempcordDataParser(
{required ProfileJsonDataConverter<P> profileConverter,
required BodyTemperatureRecordListCsvConverter<N> btrlConverter,
List<GenericTempcordDataConverter>? additionalConverter}) =>
TempcordDataParser._(_ConverterSet()
..add(profileConverter)
..add(btrlConverter)
..addAll(additionalConverter ?? <GenericTempcordDataConverter>[]));