You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.8 KiB
Dart
61 lines
1.8 KiB
Dart
class ChatAttachment {
|
|
String? id;
|
|
String? originalFileName;
|
|
String? storedFileName;
|
|
String? contentType;
|
|
int? sizeBytes;
|
|
String? downloadUrl;
|
|
String? relativePath;
|
|
String? createdOn;
|
|
bool? isContextual;
|
|
String? moduleCode;
|
|
String? referenceId;
|
|
String? conversationId;
|
|
|
|
ChatAttachment(
|
|
{this.id,
|
|
this.originalFileName,
|
|
this.storedFileName,
|
|
this.contentType,
|
|
this.sizeBytes,
|
|
this.downloadUrl,
|
|
this.relativePath,
|
|
this.createdOn,
|
|
this.isContextual,
|
|
this.moduleCode,
|
|
this.referenceId,
|
|
this.conversationId});
|
|
|
|
ChatAttachment.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
originalFileName = json['originalFileName'];
|
|
storedFileName = json['storedFileName'];
|
|
contentType = json['contentType'];
|
|
sizeBytes = json['sizeBytes'];
|
|
downloadUrl = json['downloadUrl'];
|
|
relativePath = json['relativePath'];
|
|
createdOn = json['createdOn'];
|
|
isContextual = json['isContextual'];
|
|
moduleCode = json['moduleCode'];
|
|
referenceId = json['referenceId'];
|
|
conversationId = json['conversationId'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['originalFileName'] = this.originalFileName;
|
|
data['storedFileName'] = this.storedFileName;
|
|
data['contentType'] = this.contentType;
|
|
data['sizeBytes'] = this.sizeBytes;
|
|
data['downloadUrl'] = this.downloadUrl;
|
|
data['relativePath'] = this.relativePath;
|
|
data['createdOn'] = this.createdOn;
|
|
data['isContextual'] = this.isContextual;
|
|
data['moduleCode'] = this.moduleCode;
|
|
data['referenceId'] = this.referenceId;
|
|
data['conversationId'] = this.conversationId;
|
|
return data;
|
|
}
|
|
}
|