Merge branch 'newHost' of https://git.oa00.com/1281228557/aku_new_community into newHost
# Conflicts: # lib/pages/tab_navigator.dartpull/1/head
commit
9496071917
@ -0,0 +1,28 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
part 'updater_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class UpdaterModel extends Equatable{
|
||||
final int id;
|
||||
final String versionNumber;
|
||||
final String buildNo;
|
||||
final int forceUpdate;
|
||||
final String createDate;
|
||||
|
||||
factory UpdaterModel.fromJson(Map<String, dynamic> json) =>_$UpdaterModelFromJson(json);
|
||||
|
||||
const UpdaterModel({
|
||||
required this.id,
|
||||
required this.versionNumber,
|
||||
required this.buildNo,
|
||||
required this.forceUpdate,
|
||||
required this.createDate,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
id,versionNumber,buildNo,forceUpdate,createDate,
|
||||
];
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'updater_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
UpdaterModel _$UpdaterModelFromJson(Map<String, dynamic> json) => UpdaterModel(
|
||||
id: json['id'] as int,
|
||||
versionNumber: json['versionNumber'] as String,
|
||||
buildNo: json['buildNo'] as String,
|
||||
forceUpdate: json['forceUpdate'] as int,
|
||||
createDate: json['createDate'] as String,
|
||||
);
|
Loading…
Reference in new issue