parent
520f2693aa
commit
926f20200a
Binary file not shown.
@ -0,0 +1,40 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
part 'update_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class UpdateModel extends Equatable {
|
||||
final int updateStatus;
|
||||
final int versionCode;
|
||||
final String versionName;
|
||||
final String modifyContent;
|
||||
final String downloadUrl;
|
||||
final String apkSize;
|
||||
final String apkMd5;
|
||||
|
||||
factory UpdateModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$UpdateModelFromJson(json);
|
||||
|
||||
|
||||
const UpdateModel({
|
||||
required this.updateStatus,
|
||||
required this.versionCode,
|
||||
required this.versionName,
|
||||
required this.modifyContent,
|
||||
required this.downloadUrl,
|
||||
required this.apkSize,
|
||||
required this.apkMd5,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
updateStatus,
|
||||
versionCode,
|
||||
versionName,
|
||||
modifyContent,
|
||||
downloadUrl,
|
||||
apkSize,
|
||||
apkMd5,
|
||||
];
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'update_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
UpdateModel _$UpdateModelFromJson(Map<String, dynamic> json) => UpdateModel(
|
||||
updateStatus: json['updateStatus'] as int,
|
||||
versionCode: json['versionCode'] as int,
|
||||
versionName: json['versionName'] as String,
|
||||
modifyContent: json['modifyContent'] as String,
|
||||
downloadUrl: json['downloadUrl'] as String,
|
||||
apkSize: json['apkSize'] as String,
|
||||
apkMd5: json['apkMd5'] as String,
|
||||
);
|
Loading…
Reference in new issue