import 'package:json_annotation/json_annotation.dart';

import '../../bean/atmob_track_point.dart';
import '../../bean/track_daily_bean.dart';

part 'track_daily_action_response.g.dart';

@JsonSerializable()
class TrackDailyActionResponse {
  @JsonKey(name: 'startPoint')
  TrackDailyBean? startPoint;

  @JsonKey(name: 'exceptionPoint')
  TrackDailyBean? exceptionPoint;

  @JsonKey(name: 'list')
  List<AtmobTrackPoint>? trackPoints;

  TrackDailyActionResponse({
    this.startPoint,
    this.exceptionPoint,
    this.trackPoints,
  });

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