mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-29 17:31:01 +01:00
25 lines
871 B
Dart
25 lines
871 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'workout_plan.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
WorkoutPlan _$WorkoutPlanFromJson(Map<String, dynamic> json) {
|
|
$checkKeys(json, requiredKeys: const ['id', 'creation_date', 'name', 'description']);
|
|
return WorkoutPlan(
|
|
id: json['id'] as int?,
|
|
creationDate: DateTime.parse(json['creation_date'] as String),
|
|
name: json['name'] as String,
|
|
description: json['description'] as String?,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$WorkoutPlanToJson(WorkoutPlan instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'creation_date': instance.creationDate.toIso8601String(),
|
|
'name': instance.name,
|
|
'description': instance.description,
|
|
};
|