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