import 'package:json_annotation/json_annotation.dart';

part 'app_updata_info_entity.g.dart';

@JsonSerializable(checked: true)
class AppUpdataInfoEntity extends Object{

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

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

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

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

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

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

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

  AppUpdataInfoEntity(this.versionCode,this.versionName,this.updateType,this.versionDescribe,this.androidurl,this.appStoreUrl,this.apkSavePath);

  factory AppUpdataInfoEntity.fromJson(Map<String, dynamic> srcJson) => _$AppUpdataInfoEntityFromJson(srcJson);

  Map<String, dynamic> toJson() => _$AppUpdataInfoEntityToJson(this);
}
