mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
21 lines
634 B
Dart
21 lines
634 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'category.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
ExerciseCategory _$ExerciseCategoryFromJson(Map<String, dynamic> json) {
|
|
$checkKeys(json, requiredKeys: const ['id', 'name']);
|
|
return ExerciseCategory(
|
|
id: (json['id'] as num).toInt(),
|
|
name: json['name'] as String,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$ExerciseCategoryToJson(ExerciseCategory instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'name': instance.name,
|
|
};
|