import 'package:json_annotation/json_annotation.dart';

part 'version_update_bean.g.dart';

@JsonSerializable()
class VersionUpdateBean {
  @JsonKey(name: 'md5')
  String? md5;

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

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

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

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

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

  @JsonKey(name: 'version')
  String version;

  VersionUpdateBean(this.version, this.md5, this.url, this.desc, this.extra,
      this.force, this.title);

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