2025-07-20 11:31:23 +03:30
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
|
|
|
|
|
|
part 'app_info_model.freezed.dart';
|
|
|
|
|
part 'app_info_model.g.dart';
|
|
|
|
|
|
|
|
|
|
@freezed
|
|
|
|
|
abstract class AppInfoModel with _$AppInfoModel {
|
2025-12-03 08:06:06 +03:30
|
|
|
const factory AppInfoModel({String? key, String? file, Info? info}) =
|
|
|
|
|
_AppInfoModel;
|
2025-07-20 11:31:23 +03:30
|
|
|
|
2025-12-03 08:06:06 +03:30
|
|
|
factory AppInfoModel.fromJson(Map<String, dynamic> json) =>
|
|
|
|
|
_$AppInfoModelFromJson(json);
|
2025-07-20 11:31:23 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@freezed
|
|
|
|
|
abstract class Info with _$Info {
|
2025-12-03 08:06:06 +03:30
|
|
|
const factory Info({
|
|
|
|
|
String? version,
|
|
|
|
|
String? minVersion,
|
|
|
|
|
String? module,
|
|
|
|
|
bool? required,
|
|
|
|
|
}) = _Info;
|
2025-07-20 11:31:23 +03:30
|
|
|
|
|
|
|
|
factory Info.fromJson(Map<String, dynamic> json) => _$InfoFromJson(json);
|
|
|
|
|
}
|