mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
23 lines
775 B
Dart
23 lines
775 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'weight_entry.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
WeightEntry _$WeightEntryFromJson(Map<String, dynamic> json) {
|
|
$checkKeys(json, requiredKeys: const ['id', 'weight', 'date']);
|
|
return WeightEntry(
|
|
id: json['id'] as String?,
|
|
weight: stringToNum(json['weight'] as String?),
|
|
date: json['date'] == null ? null : DateTime.parse(json['date'] as String),
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$WeightEntryToJson(WeightEntry instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'weight': numToString(instance.weight),
|
|
'date': instance.date.toIso8601String(),
|
|
};
|