hkjg
This commit is contained in:
@@ -27,7 +27,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;
|
||||
@@ -56,7 +56,7 @@ class OperationModel extends Equatable {
|
||||
this.id,
|
||||
this.createdAt,
|
||||
this.type = '',
|
||||
this.subType,
|
||||
this.subtype,
|
||||
this.providerId,
|
||||
this.providerDisplayName,
|
||||
this.modelId,
|
||||
@@ -110,7 +110,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,
|
||||
@@ -139,7 +139,7 @@ class OperationModel extends Equatable {
|
||||
id,
|
||||
createdAt,
|
||||
type,
|
||||
subType,
|
||||
subtype,
|
||||
providerId,
|
||||
providerDisplayName,
|
||||
modelId,
|
||||
@@ -174,7 +174,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?,
|
||||
providerId: map['provider_id'] as String? ?? '',
|
||||
providerDisplayName: "${map['provider']['name']}".myFormat(),
|
||||
modelId: map['model_id'] as String? ?? '',
|
||||
@@ -212,7 +212,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,
|
||||
|
||||
Reference in New Issue
Block a user