mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 21:08:54 +03:30
131 lines
2.5 KiB
Dart
Executable File
131 lines
2.5 KiB
Dart
Executable File
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
class ItemResultObject extends Equatable {
|
|
final String id;
|
|
final String name;
|
|
final String size;
|
|
final String userName;
|
|
final String status;
|
|
final String? batchId;
|
|
final String? udi;
|
|
final String? udi_name;
|
|
final String? packageId;
|
|
|
|
ItemResultObject({
|
|
required this.id,
|
|
required this.name,
|
|
required this.size,
|
|
required this.userName,
|
|
required this.status,
|
|
this.batchId,
|
|
this.udi,
|
|
this.udi_name,
|
|
this.packageId,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [
|
|
id,
|
|
name,
|
|
size,
|
|
userName,
|
|
status,
|
|
batchId!,
|
|
udi!,
|
|
udi_name!,
|
|
packageId!,
|
|
];
|
|
|
|
@override
|
|
bool get stringify => true;
|
|
}
|
|
|
|
class ItemDetailObject extends Equatable {
|
|
final String id;
|
|
final String name;
|
|
final String userName;
|
|
final String userCreator;
|
|
final String size;
|
|
final String specific;
|
|
final String hospital;
|
|
final String description;
|
|
final String createdAt;
|
|
final String udi;
|
|
final String status;
|
|
final List<String>? filePath;
|
|
final String? packageId;
|
|
final int? repair;
|
|
|
|
ItemDetailObject(
|
|
{required this.id,
|
|
required this.name,
|
|
required this.userName,
|
|
required this.size,
|
|
required this.specific,
|
|
required this.hospital,
|
|
required this.description,
|
|
required this.createdAt,
|
|
required this.udi,
|
|
required this.status,
|
|
this.filePath,
|
|
required this.packageId,
|
|
required this.userCreator,
|
|
this.repair});
|
|
|
|
@override
|
|
List<Object> get props {
|
|
return [
|
|
id,
|
|
name,
|
|
userName,
|
|
userCreator,
|
|
size,
|
|
specific,
|
|
hospital,
|
|
description,
|
|
createdAt,
|
|
udi,
|
|
status,
|
|
filePath!,
|
|
packageId!,
|
|
];
|
|
}
|
|
|
|
@override
|
|
bool get stringify => true;
|
|
}
|
|
|
|
class ItemFilterObject extends Equatable {
|
|
final String id;
|
|
final String name;
|
|
final String udi;
|
|
final String hospital;
|
|
final String size;
|
|
final String specific;
|
|
|
|
ItemFilterObject({
|
|
required this.id,
|
|
required this.name,
|
|
required this.udi,
|
|
required this.hospital,
|
|
required this.size,
|
|
required this.specific,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props {
|
|
return [
|
|
id,
|
|
name,
|
|
udi,
|
|
hospital,
|
|
size,
|
|
specific,
|
|
];
|
|
}
|
|
|
|
@override
|
|
bool get stringify => true;
|
|
}
|