Map<String, dynamic> toJson() { final Map<String, dynamic> data = Map<String, dynamic>(); data['nonce'] = this.nonce; data['root'] = this.root; data['expiry'] = this.expiry; return data; }