EMImageMessageBody.fromJson constructor
EMImageMessageBody.fromJson({
- required Map map,
Implementation
EMImageMessageBody.fromJson({required Map map})
: super.fromJson(map: map, type: MessageType.IMAGE) {
thumbnailLocalPath = map["thumbnailLocalPath"];
thumbnailRemotePath = map["thumbnailRemotePath"];
thumbnailSecret = map["thumbnailSecret"];
sendOriginalImage = map["sendOriginalImage"] ?? false;
height = (map["height"] ?? 0).toDouble();
width = (map["width"] ?? 0).toDouble();
thumbnailStatus = DownloadStatus.values[map["thumbnailStatus"]];
isGif = map["isGif"] ?? false;
}