AttachmentContent.fromJson constructor

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

Implementation

factory AttachmentContent.fromJson(Map<String, dynamic> json) {
  return AttachmentContent(
    hash: json['Hash'] as String?,
    hashType: (json['HashType'] as String?)?.toAttachmentHashType(),
    name: json['Name'] as String?,
    size: json['Size'] as int?,
    url: json['Url'] as String?,
  );
}