Map<String, Object?> toJson() { var key = this.key; var value = this.value; final json = <String, Object?>{}; json[r'key'] = key; json[r'value'] = value; return json; }