forked from eatvio/eatvio_app
20 lines
685 B
Dart
20 lines
685 B
Dart
import 'package:eatvio_app/features/feed/models/plan_pagination_model.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'chosen_plan_model.freezed.dart';
|
|
part 'chosen_plan_model.g.dart';
|
|
|
|
@freezed
|
|
class ChosenPlanModel with _$ChosenPlanModel {
|
|
|
|
factory ChosenPlanModel({
|
|
@JsonKey() required int id,
|
|
@JsonKey(name: 'option_type') required String optionType,
|
|
@JsonKey(name: 'start_date') required DateTime startDate,
|
|
@JsonKey(name: 'chat_id') required String chatId,
|
|
@JsonKey(name: 'plan') required PlanModel plan,
|
|
|
|
}) = _ChosenPlanModel;
|
|
|
|
factory ChosenPlanModel.fromJson(Map<String, dynamic> json) => _$ChosenPlanModelFromJson(json);
|
|
} |