This commit is contained in:
2026-05-11 11:44:14 +02:00
parent 5c86483563
commit a76180497e
11 changed files with 221 additions and 71 deletions

View File

@@ -107,6 +107,7 @@ class TicketModel extends Equatable {
final TicketResult? ticketResult;
final String? resolutionNotes;
final String? customerName;
final String? customerEmail;
final String? targetModelName;
final String? sourceModelName;
final String? createdById;
@@ -142,6 +143,7 @@ class TicketModel extends Equatable {
this.ticketResult,
this.resolutionNotes,
this.customerName,
this.customerEmail,
this.targetModelName,
this.sourceModelName,
this.createdById,
@@ -192,6 +194,7 @@ class TicketModel extends Equatable {
TicketResult? ticketResult,
String? resolutionNotes,
String? customerName,
String? customerEmail,
String? targetModelName,
String? sourceModelName,
String? createdById,
@@ -228,6 +231,7 @@ class TicketModel extends Equatable {
ticketResult: ticketResult ?? this.ticketResult,
resolutionNotes: resolutionNotes ?? this.resolutionNotes,
customerName: customerName ?? this.customerName,
customerEmail: customerEmail ?? this.customerEmail,
targetModelName: targetModelName ?? this.targetModelName,
sourceModelName: sourceModelName ?? this.sourceModelName,
createdById: createdById ?? this.createdById,
@@ -276,6 +280,7 @@ class TicketModel extends Equatable {
ticketResult: TicketResult.fromString(map['ticket_result'] as String?),
resolutionNotes: map['resolution_notes'] as String?,
customerName: (map['customer']?['name'] as String?).myFormat(),
customerEmail: (map['customer']?['email'] as String?).myFormat(),
targetModelName: (map['target_model']?['name_with_brand'] as String?)
?.myFormat(),
sourceModelName: (map['source_model']?['name_with_brand'] as String?)
@@ -350,6 +355,7 @@ class TicketModel extends Equatable {
resolutionNotes,
includedAccessories,
customerName,
customerEmail,
targetModelName,
sourceModelName,
createdById,