mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 09:42:50 +01:00
24 lines
659 B
Dart
24 lines
659 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,
|
|
};
|