Compare commits
No commits in common. 'e9a50f149639642b0a20c79428e10f093096f3b0' and 'ec5abdf5db8c5b88ccf28fbbd48ddad034e802b1' have entirely different histories.
e9a50f1496
...
ec5abdf5db
Binary file not shown.
@ -1,40 +0,0 @@
|
|||||||
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,
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
// 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