import 'package:json_annotation/json_annotation.dart';

import '../../bean/track_summary.dart';

part 'track_daily_summary_response.g.dart';

@JsonSerializable()
class TrackDailySummaryResponse {
  @JsonKey(name: 'phoneSituation')
  TrackSummary? phoneSituation;

  @JsonKey(name: 'stayLongest')
  TrackSummary? stayLongest;

  @JsonKey(name: 'trackSituation')
  String? trackSituation;

  @JsonKey(name: 'showTrackSituation')
  bool showTrackSituation;

  TrackDailySummaryResponse({
    this.phoneSituation,
    this.stayLongest,
    this.trackSituation,
    required this.showTrackSituation,
  });

  factory TrackDailySummaryResponse.fromJson(Map<String, dynamic> json) =>
      _$TrackDailySummaryResponseFromJson(json);
}
