Map<String, dynamic> toMap() { return { 'data': data, 'version': version, 'header': header, 'signature': signature, }; }