EMImageMessageBody.fromJson constructor Null safety

EMImageMessageBody.fromJson(
  1. {required Map map}
)

Implementation

EMImageMessageBody.fromJson({required Map map})
    : super.fromJson(map: map, type: EMMessageBodyType.IMAGE) {
  this.thumbnailLocalPath = map['thumbnailLocalPath'];
  this.thumbnailRemotePath = map['thumbnailRemotePath'];
  this.thumbnailSecret = map['thumbnailSecret'];
  this.sendOriginalImage = map.boolValue('sendOriginalImage');
  this.height = map['height']?.toDouble();
  this.width = map['width']?.toDouble();
  this.thumbnailStatus = EMFileMessageBody.downloadStatusFromInt(
    map['thumbnailStatus'],
  );
}