Files
flutter/lib/models/workouts/set.g.dart
Roland Geider 63584fb8f2 Use individual endpoints to load plan data
While this results in way more requests needed, it has the great benefit of using
the same data structure for reading and writing. This saves us a lot of headaches
in the data modelling and we don't have to care that the info endpoints looked a
bit different.
2021-04-01 16:28:35 +02:00

24 lines
707 B
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'set.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Set _$SetFromJson(Map<String, dynamic> json) {
$checkKeys(json, requiredKeys: const ['id', 'sets', 'order']);
return Set(
day: json['exerciseday'] as int,
sets: json['sets'] as int,
order: json['order'] as int?,
)..id = json['id'] as int?;
}
Map<String, dynamic> _$SetToJson(Set instance) => <String, dynamic>{
'id': instance.id,
'sets': instance.sets,
'exerciseday': instance.day,
'order': instance.order,
};