import 'package:json_annotation/json_annotation.dart';

part 'track_daily_bean.g.dart';

@JsonSerializable()
class TrackDailyBean {
  @JsonKey(name: 'addr')
  String? addr;

  @JsonKey(name: 'start')
  int start;

  @JsonKey(name: 'end')
  int end;

  @JsonKey(name: 'duration')
  int duration;

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

  @JsonKey(name: 'status')
  int? status;

  @JsonKey(name: 'lng')
  double? lng;

  @JsonKey(name: 'lat')
  double? lat;

  @JsonKey(name: 'totalUnlock')
  int? totalUnlock;

  @JsonKey(name: 'highUnlock')
  int? highUnlock;

  TrackDailyBean({
    this.addr,
    required this.start,
    required this.end,
    required this.duration,
    this.network,
    this.lat,
    this.lng,
    required this.status,
    this.totalUnlock,
    this.highUnlock,
  });

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