toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'ts': ts,
      'encryptedCID': encryptedCID?.toBase58(),
      'cid': cid.toBase58(),
      'hashes': hashes?.map((e) => e.toBase64Url()).toList(),
      'thumbnail': thumbnail,
    };