// GENERATED CODE - DO NOT MODIFY BY HAND part of 'chosen_plan_model.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _$ChosenPlanModelImpl _$$ChosenPlanModelImplFromJson( Map json, ) => _$ChosenPlanModelImpl( id: (json['id'] as num).toInt(), optionType: json['option_type'] as String, startDate: DateTime.parse(json['start_date'] as String), chosenPlanState: $enumDecode( _$ChosenPlanStateEnumEnumMap, json['last_state'], ), chatId: json['chat_id'] as String, consultantId: (json['consultant_id'] as num).toInt(), plan: PlanModel.fromJson(json['plan'] as Map), ); Map _$$ChosenPlanModelImplToJson( _$ChosenPlanModelImpl instance, ) => { 'id': instance.id, 'option_type': instance.optionType, 'start_date': instance.startDate.toIso8601String(), 'last_state': _$ChosenPlanStateEnumEnumMap[instance.chosenPlanState]!, 'chat_id': instance.chatId, 'consultant_id': instance.consultantId, 'plan': instance.plan, }; const _$ChosenPlanStateEnumEnumMap = { ChosenPlanStateEnum.stateInited: 'initied', ChosenPlanStateEnum.stateStartDateHasBeenSet: 'start_date_has_been_set', ChosenPlanStateEnum.stateInCoordination: 'in_coordination', ChosenPlanStateEnum.stateStarted: 'started', ChosenPlanStateEnum.stateInProgress: 'in_progress', ChosenPlanStateEnum.statePendingPayment: 'pending_payment', ChosenPlanStateEnum.stateConfirmedByConsultant: 'confirmed_by_consultant', ChosenPlanStateEnum.statePaid: 'paid', ChosenPlanStateEnum.stateCanceledByTheInitiator: 'canceled_by_the_initiator', ChosenPlanStateEnum.stateLastDayStarted: 'last_day_started', ChosenPlanStateEnum.stateLastDayFinished: 'last_day_finished', ChosenPlanStateEnum.stateComplained: 'complained', ChosenPlanStateEnum.stateDone: 'done', ChosenPlanStateEnum.stateChargeWasCollected: 'charge_was_collected', };