fixed typing issue for the attachmentResponse
This commit is contained in:
parent
fb9f7135dd
commit
75e2505eb3
@ -143,6 +143,6 @@ class AttachmentResponse {
|
|||||||
AttachmentResponse({required this.name, required this.data});
|
AttachmentResponse({required this.name, required this.data});
|
||||||
|
|
||||||
factory AttachmentResponse.fromJson(Map<String, dynamic> json) {
|
factory AttachmentResponse.fromJson(Map<String, dynamic> json) {
|
||||||
return AttachmentResponse(name: json["name"], data: json["data"],);
|
return AttachmentResponse(name: json["name"], data: Uint8List.fromList(List<int>.from(json["data"])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user