mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:48:56 +03:30
88 lines
1.6 KiB
Dart
88 lines
1.6 KiB
Dart
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
class PackageResultObject extends Equatable {
|
|
final String id;
|
|
final String createdAt;
|
|
final String name;
|
|
|
|
PackageResultObject({
|
|
required this.id,
|
|
required this.createdAt,
|
|
required this.name,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [
|
|
id,
|
|
createdAt,
|
|
name,
|
|
];
|
|
|
|
@override
|
|
bool get stringify => true;
|
|
}
|
|
|
|
class PackageDetailObject extends Equatable {
|
|
final String id;
|
|
final String name;
|
|
final String description;
|
|
final String createDate;
|
|
final String hospitalName;
|
|
// final String udi;
|
|
final List<String> items;
|
|
|
|
PackageDetailObject({
|
|
required this.id,
|
|
required this.name,
|
|
required this.description,
|
|
required this.createDate,
|
|
required this.hospitalName,
|
|
// required this.udi,
|
|
required this.items,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props {
|
|
return [
|
|
id,
|
|
name,
|
|
description,
|
|
createDate,
|
|
hospitalName,
|
|
// udi,
|
|
items,
|
|
];
|
|
}
|
|
|
|
@override
|
|
bool get stringify => true;
|
|
}
|
|
|
|
class PackageFilterObject extends Equatable {
|
|
final String id;
|
|
final String name;
|
|
final String hospital;
|
|
// final String udi;
|
|
|
|
PackageFilterObject({
|
|
required this.id,
|
|
required this.name,
|
|
required this.hospital,
|
|
// required this.udi,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props {
|
|
return [
|
|
id,
|
|
name,
|
|
hospital,
|
|
// udi,
|
|
];
|
|
}
|
|
|
|
@override
|
|
bool get stringify => true;
|
|
}
|