RemoteAttachmentContent.fromJson constructor
RemoteAttachmentContent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RemoteAttachmentContent.fromJson(Map<String, dynamic> json) {
return RemoteAttachmentContent(
url: json['url'] as String,
contentDigest: json['contentDigest'] as String,
secret: hexToBytes(json['secret']),
salt: hexToBytes(json['salt']),
nonce: hexToBytes(json['nonce']),
scheme: json['scheme'] as String,
contentLength: json['contentLength'] as int,
filename: json['filename'] as String,
description: json['description'] as String?,
);
}