mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-29 17:31:01 +01:00
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.
24 lines
707 B
Dart
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,
|
|
};
|