parent
66d67f0996
commit
5889e88d4c
@ -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