mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
27 lines
829 B
Dart
27 lines
829 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'day.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Day _$DayFromJson(Map<String, dynamic> json) {
|
|
$checkKeys(
|
|
json,
|
|
requiredKeys: const ['id', 'training', 'description', 'day'],
|
|
);
|
|
return Day()
|
|
..id = json['id'] as int?
|
|
..workoutId = json['training'] as int
|
|
..description = json['description'] as String
|
|
..daysOfWeek = (json['day'] as List<dynamic>).map((e) => e as int).toList();
|
|
}
|
|
|
|
Map<String, dynamic> _$DayToJson(Day instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'training': instance.workoutId,
|
|
'description': instance.description,
|
|
'day': instance.daysOfWeek,
|
|
};
|