This commit is contained in:
2026-06-03 12:08:59 +02:00
parent 8ad2b7cf7e
commit a7fd37a894
9 changed files with 589 additions and 166 deletions

View File

@@ -28,7 +28,7 @@ class OperationModel extends Equatable {
final String? id;
final DateTime? createdAt;
final String type;
final String? subtype;
final String? subType;
final String? providerId;
final String? providerDisplayName;
final String? modelId;
@@ -58,7 +58,7 @@ class OperationModel extends Equatable {
this.id,
this.createdAt,
this.type = '',
this.subtype,
this.subType,
this.providerId,
this.providerDisplayName,
this.modelId,
@@ -87,7 +87,7 @@ class OperationModel extends Equatable {
String? id,
DateTime? createdAt,
String? type,
String? subtype,
String? subType,
String? providerId,
String? providerDisplayName,
String? modelId,
@@ -114,7 +114,7 @@ class OperationModel extends Equatable {
id: id ?? this.id,
createdAt: createdAt ?? this.createdAt,
type: type ?? this.type,
subtype: subtype ?? this.subtype,
subType: subType ?? this.subType,
providerId: providerId ?? this.providerId,
providerDisplayName: providerDisplayName ?? this.providerDisplayName,
modelId: modelId ?? this.modelId,
@@ -144,7 +144,7 @@ class OperationModel extends Equatable {
id,
createdAt,
type,
subtype,
subType,
providerId,
providerDisplayName,
modelId,
@@ -180,7 +180,7 @@ class OperationModel extends Equatable {
? DateTime.parse(map['created_at'])
: null,
type: map['type'] as String? ?? '',
subtype: map['sub_type'] as String?,
subType: map['sub_type'] as String?,
// I campi relazionali nullabili restano rigorosamente null!
providerId: map['provider_id'] as String?,
@@ -237,7 +237,7 @@ class OperationModel extends Equatable {
return {
if (id != null) 'id': id,
'type': type,
'sub_type': subtype,
'sub_type': subType,
'provider_id': providerId,
'model_id': modelId,
'description': description,