mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:58:56 +03:30
115 lines
2.1 KiB
Dart
Executable File
115 lines
2.1 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 int status;
|
|
final String? batchId;
|
|
final String? udi;
|
|
|
|
ItemResultObject({
|
|
required this.id,
|
|
required this.name,
|
|
required this.size,
|
|
required this.userName,
|
|
required this.status,
|
|
this.batchId,
|
|
this.udi,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [
|
|
id,
|
|
name,
|
|
size,
|
|
userName,
|
|
status,
|
|
batchId!,
|
|
udi!,
|
|
];
|
|
|
|
@override
|
|
bool get stringify => true;
|
|
}
|
|
|
|
class ItemDetailObject extends Equatable {
|
|
final String id;
|
|
final String name;
|
|
final String userName;
|
|
final String size;
|
|
final String specific;
|
|
final String hospital;
|
|
final String description;
|
|
final String createdAt;
|
|
final String udi;
|
|
final int status;
|
|
|
|
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,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props {
|
|
return [
|
|
id,
|
|
name,
|
|
userName,
|
|
size,
|
|
specific,
|
|
hospital,
|
|
description,
|
|
createdAt,
|
|
udi,
|
|
status,
|
|
];
|
|
}
|
|
|
|
@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;
|
|
}
|