SoundMessageNode.fromJson constructor

SoundMessageNode.fromJson(
  1. Map<String, dynamic> json
)

Implementation

SoundMessageNode.fromJson(Map<String, dynamic> json)
    : super(MessageElemTypeEnum.Sound) {
  if (json['uuid'] != null) _uuid = json['uuid'];
  if (json['path'] != null) path = json['path'];
  if (json['duration'] != null) duration = json['duration'];
  if (json['dataSize'] != null) _dataSize = json['dataSize'];
}